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 ItemStackbootsprivate booleandescendingprivate Optional<Entity>entityprivate ItemStackheldItemprivate doubleminYprivate Predicate<Fluid>walkOnFluidPredicate -
Constructor Summary
Constructors Modifier Constructor Description protectedEntityShapeContext(boolean descending, double minY, ItemStack boots, ItemStack heldItem, Predicate<Fluid> walkOnFluidPredicate, Optional<Entity> entity)protectedEntityShapeContext(Entity entity)Deprecated. -
Method Summary
Modifier and Type Method Description booleancanWalkOnFluid(FluidState state, FlowableFluid fluid)Optional<Entity>getEntity()booleanisAbove(VoxelShape shape, BlockPos pos, boolean defaultValue)booleanisDescending()booleanisHolding(Item item)
-
Field Details
-
ABSENT
-
descending
private final boolean descending -
minY
private final double minY -
heldItem
-
boots
-
walkOnFluidPredicate
-
entity
-
-
Constructor Details
-
EntityShapeContext
-
EntityShapeContext
Deprecated.
-
-
Method Details
-
isHolding
- Specified by:
isHoldingin interfaceShapeContext
-
canWalkOnFluid
- Specified by:
canWalkOnFluidin interfaceShapeContext
-
isDescending
public boolean isDescending()- Specified by:
isDescendingin interfaceShapeContext
-
isAbove
- Specified by:
isAbovein interfaceShapeContext
-
getEntity
-