Interface CollisionGetter

All Superinterfaces:
BlockGetter, IForgeBlockGetter, 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 p_45774_, int p_45775_)
    • isUnobstructed

      default boolean isUnobstructed(@Nullable Entity p_45750_, VoxelShape p_45751_)
    • isUnobstructed

      default boolean isUnobstructed(BlockState p_45753_, BlockPos p_45754_, CollisionContext p_45755_)
    • isUnobstructed

      default boolean isUnobstructed(Entity p_45785_)
    • noCollision

      default boolean noCollision(AABB p_45773_)
    • noCollision

      default boolean noCollision(Entity p_45787_)
    • noCollision

      default boolean noCollision(@Nullable Entity p_45757_, AABB p_45758_)
    • getEntityCollisions

      List<VoxelShape> getEntityCollisions(@Nullable Entity p_186427_, AABB p_186428_)
    • getCollisions

      default Iterable<VoxelShape> getCollisions(@Nullable Entity p_186432_, AABB p_186433_)
    • getBlockCollisions

      default Iterable<VoxelShape> getBlockCollisions(@Nullable Entity p_186435_, AABB p_186436_)
    • borderCollision

      @Nullable private VoxelShape borderCollision(Entity p_186441_, AABB p_186442_)
    • collidesWithSuffocatingBlock

      default boolean collidesWithSuffocatingBlock(@Nullable Entity p_186438_, AABB p_186439_)
    • findFreePosition

      default Optional<Vec3> findFreePosition(@Nullable Entity p_151419_, VoxelShape p_151420_, Vec3 p_151421_, double p_151422_, double p_151423_, double p_151424_)