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
- Mappings:
Namespace Name official edwintermediary net/minecraft/class_631named net/minecraft/client/world/ClientChunkManager
-
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, BitSet bitSet)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
- Mappings:
Namespace Name Mixin selector official aLedw;a:Lorg/apache/logging/log4j/Logger;intermediary field_3679Lnet/minecraft/class_631;field_3679:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/world/ClientChunkManager;LOGGER:Lorg/apache/logging/log4j/Logger;
-
emptyChunk
- Mappings:
Namespace Name Mixin selector official bLedw;b:Lcjw;intermediary field_3676Lnet/minecraft/class_631;field_3676:Lnet/minecraft/class_2818;named emptyChunkLnet/minecraft/client/world/ClientChunkManager;emptyChunk:Lnet/minecraft/world/chunk/WorldChunk;
-
lightingProvider
- Mappings:
Namespace Name Mixin selector official cLedw;c:Ldac;intermediary field_3677Lnet/minecraft/class_631;field_3677:Lnet/minecraft/class_3568;named lightingProviderLnet/minecraft/client/world/ClientChunkManager;lightingProvider:Lnet/minecraft/world/chunk/light/LightingProvider;
-
chunks
- Mappings:
Namespace Name Mixin selector official dLedw;d:Ledw$a;intermediary field_16246Lnet/minecraft/class_631;field_16246:Lnet/minecraft/class_631$class_3681;named chunksLnet/minecraft/client/world/ClientChunkManager;chunks:Lnet/minecraft/client/world/ClientChunkManager$ClientChunkMap;
-
world
- Mappings:
Namespace Name Mixin selector official eLedw;e:Ledy;intermediary field_16525Lnet/minecraft/class_631;field_16525:Lnet/minecraft/class_638;named worldLnet/minecraft/client/world/ClientChunkManager;world:Lnet/minecraft/client/world/ClientWorld;
-
-
Constructor Details
-
ClientChunkManager
- Mappings:
Namespace Name Mixin selector official <init>Ledw;<init>(Ledy;I)Vintermediary <init>Lnet/minecraft/class_631;<init>(Lnet/minecraft/class_638;I)Vnamed <init>Lnet/minecraft/client/world/ClientChunkManager;<init>(Lnet/minecraft/client/world/ClientWorld;I)V
-
-
Method Details
-
getLightingProvider
- Specified by:
getLightingProviderin classChunkManager- Mappings:
Namespace Name Mixin selector official lLcjo;l()Ldac;intermediary method_12130Lnet/minecraft/class_2802;method_12130()Lnet/minecraft/class_3568;named getLightingProviderLnet/minecraft/world/chunk/ChunkManager;getLightingProvider()Lnet/minecraft/world/chunk/light/LightingProvider;
-
positionEquals
- Mappings:
Namespace Name Mixin selector official aLedw;a(Lcjw;II)Zintermediary method_20181Lnet/minecraft/class_631;method_20181(Lnet/minecraft/class_2818;II)Znamed positionEqualsLnet/minecraft/client/world/ClientChunkManager;positionEquals(Lnet/minecraft/world/chunk/WorldChunk;II)Z
-
unload
public void unload(int chunkX, int chunkZ)- Mappings:
Namespace Name Mixin selector official dLedw;d(II)Vintermediary method_2859Lnet/minecraft/class_631;method_2859(II)Vnamed unloadLnet/minecraft/client/world/ClientChunkManager;unload(II)V
-
getChunk
- Specified by:
getChunkin classChunkManager- Mappings:
Namespace Name Mixin selector official bLedw;b(IILcjp;Z)Lcjw;intermediary method_2857Lnet/minecraft/class_631;method_2857(IILnet/minecraft/class_2806;Z)Lnet/minecraft/class_2818;named getChunkLnet/minecraft/client/world/ClientChunkManager;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;Z)Lnet/minecraft/world/chunk/WorldChunk;
-
getWorld
- Mappings:
Namespace Name Mixin selector official mLcjy;m()Lbsz;intermediary method_16399Lnet/minecraft/class_2823;method_16399()Lnet/minecraft/class_1922;named getWorldLnet/minecraft/world/chunk/ChunkProvider;getWorld()Lnet/minecraft/world/BlockView;
-
loadChunkFromPacket
@Nullable public WorldChunk loadChunkFromPacket(int x, int z, @Nullable BiomeArray biomes, PacketByteBuf buf, CompoundTag tag, BitSet bitSet)- Mappings:
Namespace Name Mixin selector official aLedw;a(IILcjm;Lnw;Lmq;Ljava/util/BitSet;)Lcjw;intermediary method_16020Lnet/minecraft/class_631;method_16020(IILnet/minecraft/class_4548;Lnet/minecraft/class_2540;Lnet/minecraft/class_2487;Ljava/util/BitSet;)Lnet/minecraft/class_2818;named loadChunkFromPacketLnet/minecraft/client/world/ClientChunkManager;loadChunkFromPacket(IILnet/minecraft/world/biome/source/BiomeArray;Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/nbt/CompoundTag;Ljava/util/BitSet;)Lnet/minecraft/world/chunk/WorldChunk;
-
tick
- Mappings:
Namespace Name Mixin selector official aLedw;a(Ljava/util/function/BooleanSupplier;)Vintermediary method_28102Lnet/minecraft/class_631;method_28102(Ljava/util/function/BooleanSupplier;)Vnamed tickLnet/minecraft/client/world/ClientChunkManager;tick(Ljava/util/function/BooleanSupplier;)V
-
setChunkMapCenter
public void setChunkMapCenter(int x, int z)- Mappings:
Namespace Name Mixin selector official eLedw;e(II)Vintermediary method_20317Lnet/minecraft/class_631;method_20317(II)Vnamed setChunkMapCenterLnet/minecraft/client/world/ClientChunkManager;setChunkMapCenter(II)V
-
updateLoadDistance
public void updateLoadDistance(int loadDistance)- Mappings:
Namespace Name Mixin selector official aLedw;a(I)Vintermediary method_20180Lnet/minecraft/class_631;method_20180(I)Vnamed updateLoadDistanceLnet/minecraft/client/world/ClientChunkManager;updateLoadDistance(I)V
-
getChunkMapRadius
private static int getChunkMapRadius(int loadDistance)- Mappings:
Namespace Name Mixin selector official bLedw;b(I)Iintermediary method_20230Lnet/minecraft/class_631;method_20230(I)Inamed getChunkMapRadiusLnet/minecraft/client/world/ClientChunkManager;getChunkMapRadius(I)I
-
getDebugString
- Specified by:
getDebugStringin classChunkManager- Mappings:
Namespace Name Mixin selector official eLcjo;e()Ljava/lang/String;intermediary method_12122Lnet/minecraft/class_2802;method_12122()Ljava/lang/String;named getDebugStringLnet/minecraft/world/chunk/ChunkManager;getDebugString()Ljava/lang/String;
-
getLoadedChunkCount
public int getLoadedChunkCount()- Mappings:
Namespace Name Mixin selector official hLedw;h()Iintermediary method_20182Lnet/minecraft/class_631;method_20182()Inamed getLoadedChunkCountLnet/minecraft/client/world/ClientChunkManager;getLoadedChunkCount()I
-
onLightUpdate
- Mappings:
Namespace Name Mixin selector official aLcjy;a(Lbue;Lgq;)Vintermediary method_12247Lnet/minecraft/class_2823;method_12247(Lnet/minecraft/class_1944;Lnet/minecraft/class_4076;)Vnamed onLightUpdateLnet/minecraft/world/chunk/ChunkProvider;onLightUpdate(Lnet/minecraft/world/LightType;Lnet/minecraft/util/math/ChunkSectionPos;)V
-
shouldTickBlock
- Overrides:
shouldTickBlockin classChunkManager- Mappings:
Namespace Name Mixin selector official aLcjo;a(Lfx;)Zintermediary method_20529Lnet/minecraft/class_2802;method_20529(Lnet/minecraft/class_2338;)Znamed shouldTickBlockLnet/minecraft/world/chunk/ChunkManager;shouldTickBlock(Lnet/minecraft/util/math/BlockPos;)Z
-
shouldTickChunk
- Overrides:
shouldTickChunkin classChunkManager- Mappings:
Namespace Name Mixin selector official aLcjo;a(Lbta;)Zintermediary method_20591Lnet/minecraft/class_2802;method_20591(Lnet/minecraft/class_1923;)Znamed shouldTickChunkLnet/minecraft/world/chunk/ChunkManager;shouldTickChunk(Lnet/minecraft/util/math/ChunkPos;)Z
-