类 ClientChunkCache
java.lang.Object
net.minecraft.world.level.chunk.ChunkSource
net.minecraft.client.multiplayer.ClientChunkCache
- 所有已实现的接口:
AutoCloseable
,LightChunkGetter
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final LevelChunk
(专用程序包) final ClientLevel
private final LevelLightEngine
(专用程序包) static final org.slf4j.Logger
(专用程序包) ClientChunkCache.Storage
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static int
calculateStorageRange
(int p_104449_) void
getChunk
(int p_104451_, int p_104452_, ChunkStatus p_334602_, boolean p_104454_) getLevel()
int
it.unimi.dsi.fastutil.longs.LongOpenHashSet
private static boolean
isValidChunk
(LevelChunk p_104439_, int p_104440_, int p_104441_) void
onLightUpdate
(LightLayer p_104436_, SectionPos p_104437_) void
onSectionEmptinessChanged
(int p_366771_, int p_363867_, int p_364686_, boolean p_362705_) void
replaceBiomes
(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_) void
tick
(BooleanSupplier p_202421_, boolean p_202422_) void
updateViewCenter
(int p_104460_, int p_104461_) void
updateViewRadius
(int p_104417_) 从类继承的方法 net.minecraft.world.level.chunk.ChunkSource
close, getChunk, getChunkForLighting, getChunkNow, hasChunk, setSpawnSettings, updateChunkForced
-
字段详细资料
-
LOGGER
static final org.slf4j.Logger LOGGER -
emptyChunk
-
lightEngine
-
storage
-
level
-
-
构造器详细资料
-
ClientChunkCache
-
-
方法详细资料
-
getLightEngine
- 指定者:
getLightEngine
在类中ChunkSource
-
isValidChunk
-
drop
-
getChunk
@Nullable public LevelChunk getChunk(int p_104451_, int p_104452_, ChunkStatus p_334602_, boolean p_104454_) - 指定者:
getChunk
在类中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
- 指定者:
tick
在类中ChunkSource
-
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
- 指定者:
gatherStats
在类中ChunkSource
-
getLoadedChunksCount
public int getLoadedChunksCount()- 指定者:
getLoadedChunksCount
在类中ChunkSource
-
onLightUpdate
-
getLoadedEmptySections
public it.unimi.dsi.fastutil.longs.LongOpenHashSet getLoadedEmptySections() -
onSectionEmptinessChanged
public void onSectionEmptinessChanged(int p_366771_, int p_363867_, int p_364686_, boolean p_362705_) - 覆盖:
onSectionEmptinessChanged
在类中ChunkSource
-