Package net.minecraft.client.multiplayer
Class ClientChunkProvider
- java.lang.Object
-
- net.minecraft.world.chunk.AbstractChunkProvider
-
- net.minecraft.client.multiplayer.ClientChunkProvider
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IChunkLightProvider
public class ClientChunkProvider extends AbstractChunkProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
ClientChunkProvider.ChunkArray
-
Field Summary
Fields Modifier and Type Field Description private Chunk
emptyChunk
private ClientWorld
level
private WorldLightManager
lightEngine
private static org.apache.logging.log4j.Logger
LOGGER
private ClientChunkProvider.ChunkArray
storage
-
Constructor Summary
Constructors Constructor Description ClientChunkProvider(ClientWorld p_i51057_1_, int p_i51057_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int
calculateStorageRange(int p_217254_0_)
void
drop(int p_73234_1_, int p_73234_2_)
java.lang.String
gatherStats()
Chunk
getChunk(int p_212849_1_, int p_212849_2_, ChunkStatus p_212849_3_, boolean p_212849_4_)
IBlockReader
getLevel()
WorldLightManager
getLightEngine()
int
getLoadedChunksCount()
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_)
Chunk
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(java.util.function.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 Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
emptyChunk
private final Chunk emptyChunk
-
lightEngine
private final WorldLightManager lightEngine
-
storage
private volatile ClientChunkProvider.ChunkArray storage
-
level
private final ClientWorld level
-
-
Constructor Detail
-
ClientChunkProvider
public ClientChunkProvider(ClientWorld p_i51057_1_, int p_i51057_2_)
-
-
Method Detail
-
getLightEngine
public WorldLightManager getLightEngine()
- Specified by:
getLightEngine
in classAbstractChunkProvider
-
isValidChunk
private static boolean isValidChunk(@Nullable Chunk p_217249_0_, int p_217249_1_, int p_217249_2_)
-
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
public IBlockReader 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
public void tick(java.util.function.BooleanSupplier p_217207_1_)
-
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
public java.lang.String gatherStats()
- Specified by:
gatherStats
in classAbstractChunkProvider
-
getLoadedChunksCount
public int getLoadedChunksCount()
-
onLightUpdate
public void onLightUpdate(LightType p_217201_1_, SectionPos p_217201_2_)
-
isTickingChunk
public boolean isTickingChunk(BlockPos p_222866_1_)
- Overrides:
isTickingChunk
in classAbstractChunkProvider
-
isEntityTickingChunk
public boolean isEntityTickingChunk(ChunkPos p_222865_1_)
- Overrides:
isEntityTickingChunk
in classAbstractChunkProvider
-
isEntityTickingChunk
public boolean isEntityTickingChunk(Entity p_217204_1_)
- Overrides:
isEntityTickingChunk
in classAbstractChunkProvider
-
-