Class DismountHelper
java.lang.Object
net.minecraft.world.entity.vehicle.DismountHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canDismountTo
(CollisionGetter pLevel, LivingEntity pPassenger, AABB pBoundingBox) static boolean
canDismountTo
(CollisionGetter pLevel, Vec3 pOffset, LivingEntity pPassenger, Pose pPose) static double
findCeilingFrom
(BlockPos pPos, int pCeiling, Function<BlockPos, VoxelShape> pShapeForPos) static Vec3
findSafeDismountLocation
(EntityType<?> pEntityType, CollisionGetter pLevel, BlockPos pPos, boolean pOnlySafePositions) static boolean
isBlockFloorValid
(double pDistance) static VoxelShape
nonClimbableShape
(BlockGetter pLevel, BlockPos pPos) static int[][]
offsetsForDirection
(Direction pDirection)
-
Constructor Details
-
DismountHelper
public DismountHelper()
-
-
Method Details
-
offsetsForDirection
-
isBlockFloorValid
public static boolean isBlockFloorValid(double pDistance) -
canDismountTo
public static boolean canDismountTo(CollisionGetter pLevel, LivingEntity pPassenger, AABB pBoundingBox) -
canDismountTo
public static boolean canDismountTo(CollisionGetter pLevel, Vec3 pOffset, LivingEntity pPassenger, Pose pPose) -
nonClimbableShape
-
findCeilingFrom
public static double findCeilingFrom(BlockPos pPos, int pCeiling, Function<BlockPos, VoxelShape> pShapeForPos) -
findSafeDismountLocation
@Nullable public static Vec3 findSafeDismountLocation(EntityType<?> pEntityType, CollisionGetter pLevel, BlockPos pPos, boolean pOnlySafePositions)
-