Package net.minecraft.util.math.shapes
Class EntitySelectionContext
java.lang.Object
net.minecraft.util.math.shapes.EntitySelectionContext
- All Implemented Interfaces:
ISelectionContext
,IForgeSelectionContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
protected static final ISelectionContext
private final Entity
private final double
private final Item
-
Constructor Summary
ModifierConstructorDescriptionprotected
EntitySelectionContext
(boolean p_i232177_1_, double p_i232177_2_, Item p_i232177_4_, Predicate<Fluid> p_i232177_5_) protected
EntitySelectionContext
(Entity p_i51182_1_) Deprecated.protected
EntitySelectionContext
(Entity entity, boolean p_i232177_1_, double p_i232177_2_, Item p_i232177_4_, Predicate<Fluid> p_i232177_5_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canStandOnFluid
(FluidState p_230426_1_, FlowingFluid p_230426_2_) boolean
isAbove
(VoxelShape p_216378_1_, BlockPos p_216378_2_, boolean p_216378_3_) boolean
boolean
isHoldingItem
(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:
isHoldingItem
in interfaceISelectionContext
-
canStandOnFluid
- Specified by:
canStandOnFluid
in interfaceISelectionContext
-
isDescending
public boolean isDescending()- Specified by:
isDescending
in interfaceISelectionContext
-
isAbove
- Specified by:
isAbove
in interfaceISelectionContext
-
getEntity
- Specified by:
getEntity
in interfaceIForgeSelectionContext
-