Class VirtualChunkSource

java.lang.Object
net.minecraft.world.level.chunk.ChunkSource
com.simibubi.create.foundation.virtualWorld.VirtualChunkSource
All Implemented Interfaces:
AutoCloseable, net.minecraft.world.level.chunk.LightChunkGetter

public class VirtualChunkSource extends net.minecraft.world.level.chunk.ChunkSource
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    net.minecraft.world.level.chunk.ChunkAccess
    getChunk(int x, int z)
     
    @Nullable net.minecraft.world.level.chunk.LevelChunk
    getChunk(int x, int z, boolean load)
     
    @Nullable net.minecraft.world.level.chunk.ChunkAccess
    getChunk(int x, int z, net.minecraft.world.level.chunk.status.ChunkStatus status, boolean load)
     
    net.minecraft.world.level.Level
     
    net.minecraft.world.level.lighting.LevelLightEngine
     
    int
     
    void
    tick(BooleanSupplier hasTimeLeft, boolean tickChunks)
     

    Methods inherited from class net.minecraft.world.level.chunk.ChunkSource

    close, getChunkForLighting, getChunkNow, hasChunk, setSpawnSettings, updateChunkForced

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.level.chunk.LightChunkGetter

    onLightUpdate
  • Constructor Details

  • Method Details

    • getLevel

      public net.minecraft.world.level.Level getLevel()
    • getChunk

      public net.minecraft.world.level.chunk.ChunkAccess getChunk(int x, int z)
    • getChunk

      @Nullable public @Nullable net.minecraft.world.level.chunk.LevelChunk getChunk(int x, int z, boolean load)
      Overrides:
      getChunk in class net.minecraft.world.level.chunk.ChunkSource
    • getChunk

      @Nullable public @Nullable net.minecraft.world.level.chunk.ChunkAccess getChunk(int x, int z, net.minecraft.world.level.chunk.status.ChunkStatus status, boolean load)
      Specified by:
      getChunk in class net.minecraft.world.level.chunk.ChunkSource
    • tick

      public void tick(BooleanSupplier hasTimeLeft, boolean tickChunks)
      Specified by:
      tick in class net.minecraft.world.level.chunk.ChunkSource
    • gatherStats

      public String gatherStats()
      Specified by:
      gatherStats in class net.minecraft.world.level.chunk.ChunkSource
    • getLoadedChunksCount

      public int getLoadedChunksCount()
      Specified by:
      getLoadedChunksCount in class net.minecraft.world.level.chunk.ChunkSource
    • getLightEngine

      public net.minecraft.world.level.lighting.LevelLightEngine getLightEngine()
      Specified by:
      getLightEngine in class net.minecraft.world.level.chunk.ChunkSource