Package net.minecraft.world.level.chunk
Class ChunkSource
java.lang.Object
net.minecraft.world.level.chunk.ChunkSource
- All Implemented Interfaces:
AutoCloseable,LightChunkGetter
- Direct Known Subclasses:
ClientChunkCache,ServerChunkCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()abstract StringgetChunk(int p_62228_, int p_62229_, boolean p_62230_) abstract ChunkAccessgetChunk(int p_62223_, int p_62224_, ChunkStatus p_62225_, boolean p_62226_) getChunkForLighting(int p_62241_, int p_62242_) getChunkNow(int p_62221_, int p_62222_) abstract LevelLightEngineabstract intbooleanhasChunk(int p_62238_, int p_62239_) voidsetSpawnSettings(boolean p_62236_, boolean p_62237_) abstract voidtick(BooleanSupplier p_202162_, boolean p_202163_) voidupdateChunkForced(ChunkPos p_62233_, boolean p_62234_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.chunk.LightChunkGetter
getLevel, onLightUpdate
-
Constructor Details
-
ChunkSource
public ChunkSource()
-
-
Method Details
-
getChunk
-
getChunkNow
-
getChunkForLighting
- Specified by:
getChunkForLightingin interfaceLightChunkGetter
-
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
-
gatherStats
-
getLoadedChunksCount
public abstract int getLoadedChunksCount() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
getLightEngine
-
setSpawnSettings
public void setSpawnSettings(boolean p_62236_, boolean p_62237_) -
updateChunkForced
-