public static class EndSpikeFeature.Spike extends Object
Modifier and Type | Field and Description |
---|---|
private Box |
boundingBox |
private int |
centerX |
private int |
centerZ |
private boolean |
guarded |
private int |
height |
private int |
radius |
Constructor and Description |
---|
Spike(int centerX,
int centerZ,
int radius,
int height,
boolean bool) |
Modifier and Type | Method and Description |
---|---|
static <T> EndSpikeFeature.Spike |
deserialize(com.mojang.datafixers.Dynamic<T> dynamic) |
Box |
getBoundingBox() |
int |
getCenterX() |
int |
getCenterZ() |
int |
getHeight() |
int |
getRadius() |
boolean |
isGuarded() |
boolean |
isInChunk(BlockPos pos) |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
private final int centerX
private final int centerZ
private final int radius
private final int height
private final boolean guarded
private final Box boundingBox
public Spike(int centerX, int centerZ, int radius, int height, boolean bool)
public boolean isInChunk(BlockPos pos)
public int getCenterX()
public int getCenterZ()
public int getRadius()
public int getHeight()
public boolean isGuarded()
public Box getBoundingBox()
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
public static <T> EndSpikeFeature.Spike deserialize(com.mojang.datafixers.Dynamic<T> dynamic)