Class DismountHelper
java.lang.Object
net.minecraft.world.entity.vehicle.DismountHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canDismountTo
(CollisionGetter level, LivingEntity passenger, AABB boundingBox) static boolean
canDismountTo
(CollisionGetter level, Vec3 offset, LivingEntity passenger, Pose pose) static double
findCeilingFrom
(BlockPos pos, int ceiling, Function<BlockPos, VoxelShape> shapeForPos) static Vec3
findSafeDismountLocation
(EntityType<?> entityType, CollisionGetter level, BlockPos pos, boolean onlySafePositions) static boolean
isBlockFloorValid
(double distance) static VoxelShape
nonClimbableShape
(BlockGetter level, BlockPos pos) static int[][]
offsetsForDirection
(Direction p_direction)
-
Constructor Details
-
DismountHelper
public DismountHelper()
-
-
Method Details
-
offsetsForDirection
-
isBlockFloorValid
public static boolean isBlockFloorValid(double distance) -
canDismountTo
public static boolean canDismountTo(CollisionGetter level, LivingEntity passenger, AABB boundingBox) -
canDismountTo
public static boolean canDismountTo(CollisionGetter level, Vec3 offset, LivingEntity passenger, Pose pose) -
nonClimbableShape
-
findCeilingFrom
public static double findCeilingFrom(BlockPos pos, int ceiling, Function<BlockPos, VoxelShape> shapeForPos) -
findSafeDismountLocation
@Nullable public static Vec3 findSafeDismountLocation(EntityType<?> entityType, CollisionGetter level, BlockPos pos, boolean onlySafePositions)
-