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 ItemStackfield_27934private Optional<Entity>field_27935private ItemStackheldItemprivate doubleminY -
Constructor Summary
Constructors Modifier Constructor Description protectedEntityShapeContext(boolean descending, double minY, ItemStack itemStack, ItemStack itemStack2, Predicate<Fluid> predicate, Optional<Entity> optional)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)Optional<Entity>method_32480()
-
Field Details
-
ABSENT
-
descending
private final boolean descending -
minY
private final double minY -
heldItem
-
field_27934
-
field_24425
-
field_27935
-
-
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
-
method_32480
-