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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Chunkprivate final ClientWorldprivate final WorldLightManagerprivate static final org.apache.logging.log4j.Loggerprivate ClientChunkProvider.ChunkArray -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intcalculateStorageRange(int p_217254_0_) voiddrop(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()intbooleanisEntityTickingChunk(Entity p_217204_1_) booleanisEntityTickingChunk(ChunkPos p_222865_1_) booleanisTickingChunk(BlockPos p_222866_1_) private static booleanisValidChunk(Chunk p_217249_0_, int p_217249_1_, int p_217249_2_) voidonLightUpdate(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_) voidtick(BooleanSupplier p_217207_1_) voidupdateViewCenter(int p_217251_1_, int p_217251_2_) voidupdateViewRadius(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:
getLightEnginein 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:
getChunkin 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:
gatherStatsin classAbstractChunkProvider
-
getLoadedChunksCount
public int getLoadedChunksCount() -
onLightUpdate
-
isTickingChunk
- Overrides:
isTickingChunkin classAbstractChunkProvider
-
isEntityTickingChunk
- Overrides:
isEntityTickingChunkin classAbstractChunkProvider
-
isEntityTickingChunk
- Overrides:
isEntityTickingChunkin classAbstractChunkProvider
-