类 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 pViewDistance) void
drop
(int pX, int pZ) getChunk
(int pChunkX, int pChunkZ, ChunkStatus pRequiredStatus, boolean pLoad) getLevel()
int
private static boolean
isValidChunk
(LevelChunk pChunk, int pX, int pZ) void
onLightUpdate
(LightLayer pType, SectionPos pPos) void
replaceBiomes
(int pX, int pZ, FriendlyByteBuf pBuffer) replaceWithPacketData
(int pX, int pZ, FriendlyByteBuf pBuffer, CompoundTag pTag, Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> pConsumer) void
tick
(BooleanSupplier pHasTimeLeft, boolean pTickChunks) void
updateViewCenter
(int pX, int pZ) void
updateViewRadius
(int pViewDistance) 从类继承的方法 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
public void drop(int pX, int pZ) -
getChunk
@Nullable public LevelChunk getChunk(int pChunkX, int pChunkZ, ChunkStatus pRequiredStatus, boolean pLoad) - 指定者:
getChunk
在类中ChunkSource
-
getLevel
-
replaceBiomes
-
replaceWithPacketData
@Nullable public LevelChunk replaceWithPacketData(int pX, int pZ, FriendlyByteBuf pBuffer, CompoundTag pTag, Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> pConsumer) -
tick
- 指定者:
tick
在类中ChunkSource
-
updateViewCenter
public void updateViewCenter(int pX, int pZ) -
updateViewRadius
public void updateViewRadius(int pViewDistance) -
calculateStorageRange
private static int calculateStorageRange(int pViewDistance) -
gatherStats
- 指定者:
gatherStats
在类中ChunkSource
-
getLoadedChunksCount
public int getLoadedChunksCount()- 指定者:
getLoadedChunksCount
在类中ChunkSource
-
onLightUpdate
-