Interface CollisionGetter

All Superinterfaces:
BlockGetter, IBlockGetterExtension, LevelHeightAccessor
All Known Subinterfaces:
CommonLevelAccessor, LevelAccessor, LevelReader, LevelTimeAccess, ServerLevelAccessor, WorldGenLevel
All Known Implementing Classes:
ClientLevel, Level, PathNavigationRegion, ServerLevel, WorldGenRegion

public interface CollisionGetter extends BlockGetter
  • Method Details

    • getWorldBorder

      WorldBorder getWorldBorder()
    • getChunkForCollisions

      @Nullable BlockGetter getChunkForCollisions(int chunkX, int chunkZ)
    • isUnobstructed

      default boolean isUnobstructed(@Nullable Entity entity, VoxelShape shape)
    • isUnobstructed

      default boolean isUnobstructed(BlockState state, BlockPos pos, CollisionContext context)
    • isUnobstructed

      default boolean isUnobstructed(Entity entity)
    • noCollision

      default boolean noCollision(AABB collisionBox)
    • noCollision

      default boolean noCollision(Entity entity)
    • noCollision

      default boolean noCollision(@Nullable Entity entity, AABB collisionBox)
    • noBlockCollision

      default boolean noBlockCollision(@Nullable Entity entity, AABB boundingBox)
    • getEntityCollisions

      List<VoxelShape> getEntityCollisions(@Nullable Entity entity, AABB collisionBox)
    • getCollisions

      default Iterable<VoxelShape> getCollisions(@Nullable Entity entity, AABB collisionBox)
    • getBlockCollisions

      default Iterable<VoxelShape> getBlockCollisions(@Nullable Entity entity, AABB collisionBox)
    • borderCollision

      @Nullable private VoxelShape borderCollision(Entity entity, AABB box)
    • collidesWithSuffocatingBlock

      default boolean collidesWithSuffocatingBlock(@Nullable Entity entity, AABB box)
    • findSupportingBlock

      default Optional<BlockPos> findSupportingBlock(Entity entity, AABB box)
    • findFreePosition

      default Optional<Vec3> findFreePosition(@Nullable Entity entity, VoxelShape shape, Vec3 pos, double x, double y, double z)