Package net.minecraft.client.multiplayer
Class ClientChunkCache
java.lang.Object
net.minecraft.world.level.chunk.ChunkSource
net.minecraft.client.multiplayer.ClientChunkCache
- All Implemented Interfaces:
- AutoCloseable,- LightChunkGetter
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final LevelChunk(package private) final ClientLevelprivate final LevelLightEngine(package private) static final org.slf4j.Logger(package private) ClientChunkCache.Storage
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static intcalculateStorageRange(int p_104449_) voidgetChunk(int p_104451_, int p_104452_, ChunkStatus p_104453_, boolean p_104454_) getLevel()intprivate static booleanisValidChunk(LevelChunk p_104439_, int p_104440_, int p_104441_) voidonLightUpdate(LightLayer p_104436_, SectionPos p_104437_) voidreplaceBiomes(int p_275374_, int p_275226_, FriendlyByteBuf p_275745_) replaceWithPacketData(int p_194117_, int p_194118_, FriendlyByteBuf p_194119_, CompoundTag p_194120_, Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> p_194121_) voidtick(BooleanSupplier p_202421_, boolean p_202422_) voidupdateViewCenter(int p_104460_, int p_104461_) voidupdateViewRadius(int p_104417_) Methods inherited from class net.minecraft.world.level.chunk.ChunkSourceclose, getChunk, getChunkForLighting, getChunkNow, hasChunk, setSpawnSettings, updateChunkForced
- 
Field Details- 
LOGGERstatic final org.slf4j.Logger LOGGER
- 
emptyChunk
- 
lightEngine
- 
storage
- 
level
 
- 
- 
Constructor Details- 
ClientChunkCache
 
- 
- 
Method Details- 
getLightEngine- Specified by:
- getLightEnginein class- ChunkSource
 
- 
isValidChunk
- 
drop
- 
getChunk@Nullable public LevelChunk getChunk(int p_104451_, int p_104452_, ChunkStatus p_104453_, boolean p_104454_) - Specified by:
- getChunkin class- ChunkSource
 
- 
getLevel
- 
replaceBiomes
- 
replaceWithPacketData@Nullable public LevelChunk replaceWithPacketData(int p_194117_, int p_194118_, FriendlyByteBuf p_194119_, CompoundTag p_194120_, Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> p_194121_) 
- 
tick- Specified by:
- tickin class- ChunkSource
 
- 
updateViewCenterpublic void updateViewCenter(int p_104460_, int p_104461_) 
- 
updateViewRadiuspublic void updateViewRadius(int p_104417_) 
- 
calculateStorageRangeprivate static int calculateStorageRange(int p_104449_) 
- 
gatherStats- Specified by:
- gatherStatsin class- ChunkSource
 
- 
getLoadedChunksCountpublic int getLoadedChunksCount()- Specified by:
- getLoadedChunksCountin class- ChunkSource
 
- 
onLightUpdate
 
-