Package net.minecraft.util.math.shapes
Class EntitySelectionContext
java.lang.Object
net.minecraft.util.math.shapes.EntitySelectionContext
- All Implemented Interfaces:
ISelectionContext,IForgeSelectionContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprotected static final ISelectionContextprivate final Entityprivate final doubleprivate final Item -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntitySelectionContext(boolean p_i232177_1_, double p_i232177_2_, Item p_i232177_4_, Predicate<Fluid> p_i232177_5_) protectedEntitySelectionContext(Entity p_i51182_1_) Deprecated.protectedEntitySelectionContext(Entity entity, boolean p_i232177_1_, double p_i232177_2_, Item p_i232177_4_, Predicate<Fluid> p_i232177_5_) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanStandOnFluid(FluidState p_230426_1_, FlowingFluid p_230426_2_) booleanisAbove(VoxelShape p_216378_1_, BlockPos p_216378_2_, boolean p_216378_3_) booleanbooleanisHoldingItem(Item p_216375_1_)
-
Field Details
-
EMPTY
-
descending
private final boolean descending -
entityBottom
private final double entityBottom -
heldItem
-
canStandOnFluid
-
entity
-
-
Constructor Details
-
EntitySelectionContext
-
EntitySelectionContext
-
EntitySelectionContext
Deprecated.
-
-
Method Details
-
isHoldingItem
- Specified by:
isHoldingItemin interfaceISelectionContext
-
canStandOnFluid
- Specified by:
canStandOnFluidin interfaceISelectionContext
-
isDescending
public boolean isDescending()- Specified by:
isDescendingin interfaceISelectionContext
-
isAbove
- Specified by:
isAbovein interfaceISelectionContext
-
getEntity
- Specified by:
getEntityin interfaceIForgeSelectionContext
-