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 pChunkX, int pChunkZ)
    • isUnobstructed

      default boolean isUnobstructed(@Nullable Entity pEntity, VoxelShape pShape)
    • isUnobstructed

      default boolean isUnobstructed(BlockState pState, BlockPos pPos, CollisionContext pContext)
    • isUnobstructed

      default boolean isUnobstructed(Entity pEntity)
    • noCollision

      default boolean noCollision(AABB pCollisionBox)
    • noCollision

      default boolean noCollision(Entity pEntity)
    • noCollision

      default boolean noCollision(@Nullable Entity pEntity, AABB pCollisionBox)
    • noBlockCollision

      default boolean noBlockCollision(@Nullable Entity pEntity, AABB pBoundingBox)
    • getEntityCollisions

      List<VoxelShape> getEntityCollisions(@Nullable Entity pEntity, AABB pCollisionBox)
    • getCollisions

      default Iterable<VoxelShape> getCollisions(@Nullable Entity pEntity, AABB pCollisionBox)
    • getBlockCollisions

      default Iterable<VoxelShape> getBlockCollisions(@Nullable Entity pEntity, AABB pCollisionBox)
    • borderCollision

      @Nullable private VoxelShape borderCollision(Entity pEntity, AABB pBox)
    • collidesWithSuffocatingBlock

      default boolean collidesWithSuffocatingBlock(@Nullable Entity pEntity, AABB pBox)
    • findSupportingBlock

      default Optional<BlockPos> findSupportingBlock(Entity pEntity, AABB pBox)
    • findFreePosition

      default Optional<Vec3> findFreePosition(@Nullable Entity pEntity, VoxelShape pShape, Vec3 pPos, double pX, double pY, double pZ)