Class DismountHelper
java.lang.Object
net.minecraft.world.entity.vehicle.DismountHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canDismountTo
(CollisionGetter p_38457_, LivingEntity p_38458_, AABB p_38459_) static boolean
canDismountTo
(CollisionGetter p_150280_, Vec3 p_150281_, LivingEntity p_150282_, Pose p_150283_) static double
findCeilingFrom
(BlockPos p_38464_, int p_38465_, Function<BlockPos, VoxelShape> p_38466_) static Vec3
findSafeDismountLocation
(EntityType<?> p_38442_, CollisionGetter p_38443_, BlockPos p_38444_, boolean p_38445_) static boolean
isBlockFloorValid
(double p_38440_) static VoxelShape
nonClimbableShape
(BlockGetter p_38447_, BlockPos p_38448_) static int[][]
offsetsForDirection
(Direction p_38468_)
-
Constructor Details
-
DismountHelper
public DismountHelper()
-
-
Method Details
-
offsetsForDirection
-
isBlockFloorValid
public static boolean isBlockFloorValid(double p_38440_) -
canDismountTo
-
canDismountTo
public static boolean canDismountTo(CollisionGetter p_150280_, Vec3 p_150281_, LivingEntity p_150282_, Pose p_150283_) -
nonClimbableShape
-
findCeilingFrom
public static double findCeilingFrom(BlockPos p_38464_, int p_38465_, Function<BlockPos, VoxelShape> p_38466_) -
findSafeDismountLocation
@Nullable public static Vec3 findSafeDismountLocation(EntityType<?> p_38442_, CollisionGetter p_38443_, BlockPos p_38444_, boolean p_38445_)
-