Package net.minecraft.block
Class EntityShapeContext
java.lang.Object
net.minecraft.block.EntityShapeContext
- All Implemented Interfaces:
ShapeContext
public class EntityShapeContext extends Object implements ShapeContext
-
Field Summary
Fields Modifier and Type Field Description protected static ShapeContextABSENTprivate booleandescendingprivate Predicate<Fluid>field_24425private ItemheldItemprivate doubleminY -
Constructor Summary
Constructors Modifier Constructor Description protectedEntityShapeContext(boolean descending, double minY, Item heldItem, Predicate<Fluid> predicate)protectedEntityShapeContext(Entity entity)Deprecated. -
Method Summary
Modifier and Type Method Description booleanisAbove(VoxelShape shape, BlockPos pos, boolean defaultValue)booleanisDescending()booleanisHolding(Item item)booleanmethod_27866(FluidState state, FlowableFluid fluid)
-
Field Details
-
ABSENT
-
descending
private final boolean descending -
minY
private final double minY -
heldItem
-
field_24425
-
-
Constructor Details
-
EntityShapeContext
-
EntityShapeContext
Deprecated.
-
-
Method Details
-
isHolding
- Specified by:
isHoldingin interfaceShapeContext
-
method_27866
- Specified by:
method_27866in interfaceShapeContext
-
isDescending
public boolean isDescending()- Specified by:
isDescendingin interfaceShapeContext
-
isAbove
- Specified by:
isAbovein interfaceShapeContext
-