Class DismountHelper
java.lang.Object
net.minecraft.world.entity.vehicle.DismountHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanDismountTo(CollisionGetter level, LivingEntity passenger, AABB boundingBox) static booleancanDismountTo(CollisionGetter level, Vec3 offset, LivingEntity passenger, Pose pose) static doublefindCeilingFrom(BlockPos pos, int ceiling, Function<BlockPos, VoxelShape> shapeForPos) static Vec3findSafeDismountLocation(EntityType<?> entityType, CollisionGetter level, BlockPos pos, boolean onlySafePositions) static booleanisBlockFloorValid(double distance) static VoxelShapenonClimbableShape(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)
-