Class ChunkSource

java.lang.Object
net.minecraft.world.level.chunk.ChunkSource
All Implemented Interfaces:
AutoCloseable, LightChunkGetter
Direct Known Subclasses:
ClientChunkCache, ServerChunkCache

public abstract class ChunkSource extends Object implements LightChunkGetter, AutoCloseable
  • Constructor Details

    • ChunkSource

      public ChunkSource()
  • Method Details

    • getChunk

      @Nullable public LevelChunk getChunk(int p_62228_, int p_62229_, boolean p_62230_)
    • getChunkNow

      @Nullable public LevelChunk getChunkNow(int p_62221_, int p_62222_)
    • getChunkForLighting

      @Nullable public BlockGetter getChunkForLighting(int p_62241_, int p_62242_)
      Specified by:
      getChunkForLighting in interface LightChunkGetter
    • hasChunk

      public boolean hasChunk(int p_62238_, int p_62239_)
    • getChunk

      @Nullable public abstract ChunkAccess getChunk(int p_62223_, int p_62224_, ChunkStatus p_62225_, boolean p_62226_)
    • tick

      public abstract void tick(BooleanSupplier p_156184_)
    • gatherStats

      public abstract String gatherStats()
    • getLoadedChunksCount

      public abstract int getLoadedChunksCount()
    • close

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

      public abstract LevelLightEngine getLightEngine()
    • setSpawnSettings

      public void setSpawnSettings(boolean p_62236_, boolean p_62237_)
    • updateChunkForced

      public void updateChunkForced(ChunkPos p_62233_, boolean p_62234_)