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 SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.chunk.LightChunkGettergetLevel, onLightUpdate
- 
Constructor Details- 
ChunkSourcepublic ChunkSource()
 
- 
- 
Method Details- 
getChunk
- 
getChunkNow
- 
getChunkForLighting- Specified by:
- getChunkForLightingin interface- LightChunkGetter
 
- 
hasChunkpublic 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
- 
getLoadedChunksCountpublic abstract int getLoadedChunksCount()
- 
close- Specified by:
- closein interface- AutoCloseable
- Throws:
- IOException
 
- 
getLightEngine
- 
setSpawnSettingspublic void setSpawnSettings(boolean p_62236_, boolean p_62237_) 
- 
updateChunkForced
 
-