public class EntityShapeContext extends Object implements ShapeContext
Modifier and Type | Field and Description |
---|---|
protected static ShapeContext |
ABSENT |
private boolean |
descending |
private Predicate<Fluid> |
field_24425 |
private Item |
heldItem |
private double |
minY |
Modifier | Constructor and Description |
---|---|
protected |
EntityShapeContext(boolean descending,
double minY,
Item heldItem,
Predicate<Fluid> predicate) |
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) |
boolean |
method_27866(FluidState state,
FlowableFluid fluid) |
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, Predicate<Fluid> predicate)
@Deprecated protected EntityShapeContext(Entity entity)
public boolean isHolding(Item item)
isHolding
in interface ShapeContext
public boolean method_27866(FluidState state, FlowableFluid fluid)
method_27866
in interface ShapeContext
public boolean isDescending()
isDescending
in interface ShapeContext
public boolean isAbove(VoxelShape shape, BlockPos pos, boolean defaultValue)
isAbove
in interface ShapeContext