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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
abstract String
getChunk(int p_62228_, int p_62229_, boolean p_62230_)
abstract ChunkAccess
getChunk(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 LevelLightEngine
abstract int
boolean
hasChunk(int p_62238_, int p_62239_)
void
setSpawnSettings(boolean p_62236_, boolean p_62237_)
abstract void
tick(BooleanSupplier p_156184_)
void
updateChunkForced(ChunkPos p_62233_, boolean p_62234_)
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
getLevel, onLightUpdate
-
Constructor Details
-
ChunkSource
public ChunkSource()
-
-
Method Details
-
getChunk
-
getChunkNow
-
getChunkForLighting
- Specified by:
getChunkForLighting
in 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:
close
in interfaceAutoCloseable
- Throws:
IOException
-
getLightEngine
-
setSpawnSettings
public void setSpawnSettings(boolean p_62236_, boolean p_62237_) -
updateChunkForced
-