Class DismountHelper
java.lang.Object
net.minecraft.world.entity.vehicle.DismountHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanDismountTo(CollisionGetter pLevel, LivingEntity pPassenger, AABB pBoundingBox) static booleancanDismountTo(CollisionGetter pLevel, Vec3 pOffset, LivingEntity pPassenger, Pose pPose) static doublefindCeilingFrom(BlockPos pPos, int pCeiling, Function<BlockPos, VoxelShape> pShapeForPos) static Vec3findSafeDismountLocation(EntityType<?> pEntityType, CollisionGetter pLevel, BlockPos pPos, boolean pOnlySafePositions) static booleanisBlockFloorValid(double pDistance) static VoxelShapenonClimbableShape(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)
-