Package net.minecraft.entity
Class Dismounting
java.lang.Object
net.minecraft.entity.Dismounting
public class Dismounting extends Object
-
Constructor Summary
Constructors Constructor Description Dismounting() -
Method Summary
Modifier and Type Method Description static booleancanDismountInBlock(double height)static booleancanPlaceEntityAt(CollisionView world, LivingEntity entity, Box targetBox)static Vec3dfindDismountPos(CollisionView world, double x, double height, double z, LivingEntity entity, EntityPose pose)static doublegetCeilingHeight(BlockPos pos, int maxDistance, Function<BlockPos,VoxelShape> collisionShapeGetter)static VoxelShapegetCollisionShape(BlockView world, BlockPos pos)static int[][]getDismountOffsets(Direction movementDirection)static Vec3dmethod_30769(EntityType<?> entityType, CollisionView collisionView, BlockPos blockPos, boolean bool)
-
Constructor Details
-
Dismounting
public Dismounting()
-
-
Method Details
-
getDismountOffsets
-
canDismountInBlock
public static boolean canDismountInBlock(double height) -
canPlaceEntityAt
-
findDismountPos
@Nullable public static Vec3d findDismountPos(CollisionView world, double x, double height, double z, LivingEntity entity, EntityPose pose) -
getCollisionShape
-
getCeilingHeight
public static double getCeilingHeight(BlockPos pos, int maxDistance, Function<BlockPos,VoxelShape> collisionShapeGetter) -
method_30769
@Nullable public static Vec3d method_30769(EntityType<?> entityType, CollisionView collisionView, BlockPos blockPos, boolean bool)
-