Package net.minecraft.util
Class TransportationHelper
java.lang.Object
net.minecraft.util.TransportationHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canDismountTo
(ICollisionReader p_234631_0_, LivingEntity p_234631_1_, AxisAlignedBB p_234631_2_) static double
findCeilingFrom
(BlockPos p_242383_0_, int p_242383_1_, Function<BlockPos, VoxelShape> p_242383_2_) static Vector3d
findDismountLocation
(ICollisionReader p_242381_0_, double p_242381_1_, double p_242381_3_, double p_242381_5_, LivingEntity p_242381_7_, Pose p_242381_8_) static Vector3d
findSafeDismountLocation
(EntityType<?> p_242379_0_, ICollisionReader p_242379_1_, BlockPos p_242379_2_, boolean p_242379_3_) static boolean
isBlockFloorValid
(double p_234630_0_) static VoxelShape
nonClimbableShape
(IBlockReader p_242380_0_, BlockPos p_242380_1_) static int[][]
offsetsForDirection
(Direction p_234632_0_)
-
Constructor Details
-
TransportationHelper
public TransportationHelper()
-
-
Method Details
-
offsetsForDirection
-
isBlockFloorValid
public static boolean isBlockFloorValid(double p_234630_0_) -
canDismountTo
public static boolean canDismountTo(ICollisionReader p_234631_0_, LivingEntity p_234631_1_, AxisAlignedBB p_234631_2_) -
findDismountLocation
@Nullable public static Vector3d findDismountLocation(ICollisionReader p_242381_0_, double p_242381_1_, double p_242381_3_, double p_242381_5_, LivingEntity p_242381_7_, Pose p_242381_8_) -
nonClimbableShape
-
findCeilingFrom
public static double findCeilingFrom(BlockPos p_242383_0_, int p_242383_1_, Function<BlockPos, VoxelShape> p_242383_2_) -
findSafeDismountLocation
@Nullable public static Vector3d findSafeDismountLocation(EntityType<?> p_242379_0_, ICollisionReader p_242379_1_, BlockPos p_242379_2_, boolean p_242379_3_)
-