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 box) static booleancanDismountTo(CollisionGetter level, Vec3 location, LivingEntity passenger, Pose dismountPose) static doublefindCeilingFrom(BlockPos pos, int blocks, Function<BlockPos, VoxelShape> shapeGetter) static @Nullable Vec3findSafeDismountLocation(EntityType<?> type, CollisionGetter level, BlockPos blockPos, boolean checkDangerous) static booleanisBlockFloorValid(double blockFloorHeight) static VoxelShapenonClimbableShape(BlockGetter level, BlockPos pos) static int[][]offsetsForDirection(Direction forward)
-
Constructor Details
-
DismountHelper
public DismountHelper()
-
-
Method Details
-
offsetsForDirection
-
isBlockFloorValid
public static boolean isBlockFloorValid(double blockFloorHeight) -
canDismountTo
-
canDismountTo
public static boolean canDismountTo(CollisionGetter level, Vec3 location, LivingEntity passenger, Pose dismountPose) -
nonClimbableShape
-
findCeilingFrom
public static double findCeilingFrom(BlockPos pos, int blocks, Function<BlockPos, VoxelShape> shapeGetter) -
findSafeDismountLocation
public static @Nullable Vec3 findSafeDismountLocation(EntityType<?> type, CollisionGetter level, BlockPos blockPos, boolean checkDangerous)
-