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 boolean
protected static CollisionContext
private double
private ItemStack
private ItemStack
-
Constructor Summary
ModifierConstructorDescriptionprotected
EntityCollisionContext(boolean p_166004_, double p_166005_, ItemStack p_166006_, ItemStack p_166007_, Predicate<Fluid> p_166008_, Optional<Entity> p_166009_)
protected
EntityCollisionContext(Entity p_82872_)
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canStandOnFluid(FluidState p_82883_, FlowingFluid p_82884_)
boolean
hasItemOnFeet(Item p_166011_)
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
-
footItem
-
canStandOnFluid
-
entity
-
-
Constructor Details
-
EntityCollisionContext
-
EntityCollisionContext
Deprecated.
-
-
Method Details
-
hasItemOnFeet
- Specified by:
hasItemOnFeet
in interfaceCollisionContext
-
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
-