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 Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LevelChunk(package private) ClientLevelprivate LevelLightEngine(package private) static org.apache.logging.log4j.Logger(package private) ClientChunkCache.Storage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intcalculateStorageRange(int p_104449_)voiddrop(int p_104456_, int p_104457_)getChunk(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_)replaceWithPacketData(int p_171616_, int p_171617_, ChunkBiomeContainer p_171618_, FriendlyByteBuf p_171619_, CompoundTag p_171620_, BitSet p_171621_)voidtick(BooleanSupplier p_104447_)voidupdateViewCenter(int p_104460_, int p_104461_)voidupdateViewRadius(int p_104417_)Methods inherited from class net.minecraft.world.level.chunk.ChunkSource
close, getChunk, getChunkForLighting, getChunkNow, hasChunk, setSpawnSettings, updateChunkForced
-
Field Details
-
LOGGER
static final org.apache.logging.log4j.Logger LOGGER -
emptyChunk
-
lightEngine
-
storage
-
level
-
-
Constructor Details
-
ClientChunkCache
-
-
Method Details
-
getLightEngine
- Specified by:
getLightEnginein classChunkSource
-
isValidChunk
-
drop
public void drop(int p_104456_, int p_104457_) -
getChunk
@Nullable public LevelChunk getChunk(int p_104451_, int p_104452_, ChunkStatus p_104453_, boolean p_104454_)- Specified by:
getChunkin classChunkSource
-
getLevel
-
replaceWithPacketData
@Nullable public LevelChunk replaceWithPacketData(int p_171616_, int p_171617_, ChunkBiomeContainer p_171618_, FriendlyByteBuf p_171619_, CompoundTag p_171620_, BitSet p_171621_) -
tick
- Specified by:
tickin classChunkSource
-
updateViewCenter
public void updateViewCenter(int p_104460_, int p_104461_) -
updateViewRadius
public void updateViewRadius(int p_104417_) -
calculateStorageRange
private static int calculateStorageRange(int p_104449_) -
gatherStats
- Specified by:
gatherStatsin classChunkSource
-
getLoadedChunksCount
public int getLoadedChunksCount()- Specified by:
getLoadedChunksCountin classChunkSource
-
onLightUpdate
-