Package net.minecraft.world.phys.shapes
Class EntityCollisionContext
java.lang.Object
net.minecraft.world.phys.shapes.EntityCollisionContext
- All Implemented Interfaces:
CollisionContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Predicate<FluidState>
private final boolean
protected static final CollisionContext
private final Entity
private final double
private final ItemStack
-
Constructor Summary
ModifierConstructorDescriptionprotected
EntityCollisionContext
(boolean p_198916_, double p_198917_, ItemStack p_198918_, Predicate<FluidState> p_198919_, Entity p_198920_) protected
EntityCollisionContext
(Entity p_82872_) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canStandOnFluid
(FluidState p_205115_, FluidState p_205116_) boolean
isAbove
(VoxelShape p_82886_, BlockPos p_82887_, boolean p_82888_) boolean
boolean
isHoldingItem
(Item p_82879_)
-
Field Details
-
EMPTY
-
descending
private final boolean descending -
entityBottom
private final double entityBottom -
heldItem
-
canStandOnFluid
-
entity
-
-
Constructor Details
-
EntityCollisionContext
protected EntityCollisionContext(boolean p_198916_, double p_198917_, ItemStack p_198918_, Predicate<FluidState> p_198919_, @Nullable Entity p_198920_) -
EntityCollisionContext
Deprecated.
-
-
Method Details
-
isHoldingItem
- Specified by:
isHoldingItem
in interfaceCollisionContext
-
canStandOnFluid
- Specified by:
canStandOnFluid
in interfaceCollisionContext
-
isDescending
public boolean isDescending()- Specified by:
isDescending
in interfaceCollisionContext
-
isAbove
- Specified by:
isAbove
in interfaceCollisionContext
-
getEntity
-