Package net.minecraft.client.world
Class ClientChunkManager
java.lang.Object
net.minecraft.world.chunk.ChunkManager
net.minecraft.client.world.ClientChunkManager
- All Implemented Interfaces:
AutoCloseable,ChunkProvider
@Environment(CLIENT) public class ClientChunkManager extends ChunkManager
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classClientChunkManager.ClientChunkMap -
Field Summary
Fields Modifier and Type Field Description private ClientChunkManager.ClientChunkMapchunksprivate WorldChunkemptyChunkprivate LightingProviderlightingProviderprivate static LoggerLOGGERprivate ClientWorldworld -
Constructor Summary
Constructors Constructor Description ClientChunkManager(ClientWorld world, int loadDistance) -
Method Summary
Modifier and Type Method Description WorldChunkgetChunk(int int2, int int3, ChunkStatus chunkStatus, boolean bool)private static intgetChunkMapRadius(int loadDistance)StringgetDebugString()LightingProvidergetLightingProvider()intgetLoadedChunkCount()BlockViewgetWorld()WorldChunkloadChunkFromPacket(int x, int z, BiomeArray biomes, PacketByteBuf buf, CompoundTag tag, int verticalStripBitmask)voidonLightUpdate(LightType type, ChunkSectionPos pos)private static booleanpositionEquals(WorldChunk chunk, int x, int z)voidsetChunkMapCenter(int x, int z)booleanshouldTickBlock(BlockPos pos)booleanshouldTickChunk(ChunkPos pos)voidtick(BooleanSupplier shouldKeepTicking)voidunload(int chunkX, int chunkZ)voidupdateLoadDistance(int loadDistance)Methods inherited from class net.minecraft.world.chunk.ChunkManager
close, getChunk, getWorldChunk, getWorldChunk, isChunkLoaded, setChunkForced, setMobSpawnOptions
-
Field Details
-
LOGGER
-
emptyChunk
-
lightingProvider
-
chunks
-
world
-
-
Constructor Details
-
ClientChunkManager
-
-
Method Details
-
getLightingProvider
- Specified by:
getLightingProviderin classChunkManager
-
positionEquals
-
unload
public void unload(int chunkX, int chunkZ) -
getChunk
- Specified by:
getChunkin classChunkManager
-
getWorld
-
loadChunkFromPacket
@Nullable public WorldChunk loadChunkFromPacket(int x, int z, @Nullable BiomeArray biomes, PacketByteBuf buf, CompoundTag tag, int verticalStripBitmask) -
tick
-
setChunkMapCenter
public void setChunkMapCenter(int x, int z) -
updateLoadDistance
public void updateLoadDistance(int loadDistance) -
getChunkMapRadius
private static int getChunkMapRadius(int loadDistance) -
getDebugString
- Specified by:
getDebugStringin classChunkManager
-
getLoadedChunkCount
public int getLoadedChunkCount() -
onLightUpdate
-
shouldTickBlock
- Overrides:
shouldTickBlockin classChunkManager
-
shouldTickChunk
- Overrides:
shouldTickChunkin classChunkManager
-