public class EntityShapeContext extends Object implements ShapeContext
Modifier and Type | Field and Description |
---|---|
protected static ShapeContext |
ABSENT |
private boolean |
descending |
private Item |
heldItem |
private double |
minY |
Modifier | Constructor and Description |
---|---|
protected |
EntityShapeContext(boolean descending,
double minY,
Item heldItem) |
protected |
EntityShapeContext(Entity entity)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAbove(VoxelShape shape,
BlockPos pos,
boolean defaultValue) |
boolean |
isDescending() |
boolean |
isHolding(Item item) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
absent, of
protected static final ShapeContext ABSENT
private final boolean descending
private final double minY
private final Item heldItem
protected EntityShapeContext(boolean descending, double minY, Item heldItem)
@Deprecated protected EntityShapeContext(Entity entity)
public boolean isHolding(Item item)
isHolding
in interface ShapeContext
public boolean isDescending()
isDescending
in interface ShapeContext
public boolean isAbove(VoxelShape shape, BlockPos pos, boolean defaultValue)
isAbove
in interface ShapeContext