public class Dismounting extends Object
Constructor and Description |
---|
Dismounting() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canDismountInBlock(double height) |
static boolean |
canPlaceEntityAt(CollisionView world,
LivingEntity entity,
Box targetBox) |
static Vec3d |
findDismountPos(CollisionView world,
double x,
double height,
double z,
LivingEntity entity,
EntityPose pose) |
static double |
getCeilingHeight(BlockPos pos,
int maxDistance,
Function<BlockPos,VoxelShape> collisionShapeGetter) |
static VoxelShape |
getCollisionShape(BlockView world,
BlockPos pos) |
static int[][] |
getDismountOffsets(Direction movementDirection) |
static Vec3d |
method_30769(EntityType<?> entityType,
CollisionView collisionView,
BlockPos blockPos,
boolean bool) |
public static int[][] getDismountOffsets(Direction movementDirection)
public static boolean canDismountInBlock(double height)
public static boolean canPlaceEntityAt(CollisionView world, LivingEntity entity, Box targetBox)
@Nullable public static Vec3d findDismountPos(CollisionView world, double x, double height, double z, LivingEntity entity, EntityPose pose)
public static VoxelShape getCollisionShape(BlockView world, BlockPos pos)
public static double getCeilingHeight(BlockPos pos, int maxDistance, Function<BlockPos,VoxelShape> collisionShapeGetter)
@Nullable public static Vec3d method_30769(EntityType<?> entityType, CollisionView collisionView, BlockPos blockPos, boolean bool)