Class ChunkManager

java.lang.Object
net.minecraft.world.chunk.ChunkManager
All Implemented Interfaces:
AutoCloseable, ChunkProvider
Direct Known Subclasses:
ClientChunkManager, ServerChunkManager

public abstract class ChunkManager
extends Object
implements ChunkProvider, AutoCloseable
  • Constructor Details

    • ChunkManager

      public ChunkManager()
  • Method Details

    • getWorldChunk

      @Nullable public WorldChunk getWorldChunk​(int chunkX, int chunkZ, boolean create)
    • getWorldChunk

      @Nullable public WorldChunk getWorldChunk​(int chunkX, int chunkZ)
    • getChunk

      @Nullable public BlockView getChunk​(int chunkX, int chunkZ)
      Specified by:
      getChunk in interface ChunkProvider
    • isChunkLoaded

      public boolean isChunkLoaded​(int x, int z)
    • getChunk

      @Nullable public abstract Chunk getChunk​(int x, int z, ChunkStatus leastStatus, boolean create)
    • getDebugString

      public abstract String getDebugString()
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException
    • getLightingProvider

      public abstract LightingProvider getLightingProvider()
    • setMobSpawnOptions

      public void setMobSpawnOptions​(boolean spawnMonsters, boolean spawnAnimals)
    • setChunkForced

      public void setChunkForced​(ChunkPos pos, boolean forced)
    • shouldTickEntity

      public boolean shouldTickEntity​(Entity entity)
    • shouldTickChunk

      public boolean shouldTickChunk​(ChunkPos pos)
    • shouldTickBlock

      public boolean shouldTickBlock​(BlockPos pos)