Package net.minecraft.client.multiplayer
Class ClientChunkProvider
java.lang.Object
net.minecraft.world.chunk.AbstractChunkProvider
net.minecraft.client.multiplayer.ClientChunkProvider
- All Implemented Interfaces:
AutoCloseable
,IChunkLightProvider
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Chunk
private final ClientWorld
private final WorldLightManager
private static final org.apache.logging.log4j.Logger
private ClientChunkProvider.ChunkArray
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
calculateStorageRange
(int p_217254_0_) void
drop
(int p_73234_1_, int p_73234_2_) getChunk
(int p_212849_1_, int p_212849_2_, ChunkStatus p_212849_3_, boolean p_212849_4_) getLevel()
int
boolean
isEntityTickingChunk
(Entity p_217204_1_) boolean
isEntityTickingChunk
(ChunkPos p_222865_1_) boolean
isTickingChunk
(BlockPos p_222866_1_) private static boolean
isValidChunk
(Chunk p_217249_0_, int p_217249_1_, int p_217249_2_) void
onLightUpdate
(LightType p_217201_1_, SectionPos p_217201_2_) replaceWithPacketData
(int p_228313_1_, int p_228313_2_, BiomeContainer p_228313_3_, PacketBuffer p_228313_4_, CompoundNBT p_228313_5_, int p_228313_6_, boolean p_228313_7_) void
tick
(BooleanSupplier p_217207_1_) void
updateViewCenter
(int p_217251_1_, int p_217251_2_) void
updateViewRadius
(int p_217248_1_) Methods inherited from class net.minecraft.world.chunk.AbstractChunkProvider
close, getChunk, getChunkForLighting, getChunkNow, hasChunk, setSpawnSettings, updateChunkForced
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
emptyChunk
-
lightEngine
-
storage
-
level
-
-
Constructor Details
-
ClientChunkProvider
-
-
Method Details
-
getLightEngine
- Specified by:
getLightEngine
in classAbstractChunkProvider
-
isValidChunk
-
drop
public void drop(int p_73234_1_, int p_73234_2_) -
getChunk
@Nullable public Chunk getChunk(int p_212849_1_, int p_212849_2_, ChunkStatus p_212849_3_, boolean p_212849_4_) - Specified by:
getChunk
in classAbstractChunkProvider
-
getLevel
-
replaceWithPacketData
@Nullable public Chunk replaceWithPacketData(int p_228313_1_, int p_228313_2_, @Nullable BiomeContainer p_228313_3_, PacketBuffer p_228313_4_, CompoundNBT p_228313_5_, int p_228313_6_, boolean p_228313_7_) -
tick
-
updateViewCenter
public void updateViewCenter(int p_217251_1_, int p_217251_2_) -
updateViewRadius
public void updateViewRadius(int p_217248_1_) -
calculateStorageRange
private static int calculateStorageRange(int p_217254_0_) -
gatherStats
- Specified by:
gatherStats
in classAbstractChunkProvider
-
getLoadedChunksCount
public int getLoadedChunksCount() -
onLightUpdate
-
isTickingChunk
- Overrides:
isTickingChunk
in classAbstractChunkProvider
-
isEntityTickingChunk
- Overrides:
isEntityTickingChunk
in classAbstractChunkProvider
-
isEntityTickingChunk
- Overrides:
isEntityTickingChunk
in classAbstractChunkProvider
-