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 edw
intermediary net/minecraft/class_631
named net/minecraft/client/world/ClientChunkManager
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
ClientChunkManager.ClientChunkMap
-
Field Summary
Fields Modifier and Type Field Description private ClientChunkManager.ClientChunkMap
chunks
private WorldChunk
emptyChunk
private LightingProvider
lightingProvider
private static Logger
LOGGER
private ClientWorld
world
-
Constructor Summary
Constructors Constructor Description ClientChunkManager(ClientWorld world, int loadDistance)
-
Method Summary
Modifier and Type Method Description WorldChunk
getChunk(int int2, int int3, ChunkStatus chunkStatus, boolean bool)
private static int
getChunkMapRadius(int loadDistance)
String
getDebugString()
LightingProvider
getLightingProvider()
int
getLoadedChunkCount()
BlockView
getWorld()
WorldChunk
loadChunkFromPacket(int x, int z, BiomeArray biomes, PacketByteBuf buf, CompoundTag tag, BitSet bitSet)
void
onLightUpdate(LightType type, ChunkSectionPos pos)
private static boolean
positionEquals(WorldChunk chunk, int x, int z)
void
setChunkMapCenter(int x, int z)
boolean
shouldTickBlock(BlockPos pos)
boolean
shouldTickChunk(ChunkPos pos)
void
tick(BooleanSupplier shouldKeepTicking)
void
unload(int chunkX, int chunkZ)
void
updateLoadDistance(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 a
Ledw;a:Lorg/apache/logging/log4j/Logger;
intermediary field_3679
Lnet/minecraft/class_631;field_3679:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/world/ClientChunkManager;LOGGER:Lorg/apache/logging/log4j/Logger;
-
emptyChunk
- Mappings:
Namespace Name Mixin selector official b
Ledw;b:Lcjw;
intermediary field_3676
Lnet/minecraft/class_631;field_3676:Lnet/minecraft/class_2818;
named emptyChunk
Lnet/minecraft/client/world/ClientChunkManager;emptyChunk:Lnet/minecraft/world/chunk/WorldChunk;
-
lightingProvider
- Mappings:
Namespace Name Mixin selector official c
Ledw;c:Ldac;
intermediary field_3677
Lnet/minecraft/class_631;field_3677:Lnet/minecraft/class_3568;
named lightingProvider
Lnet/minecraft/client/world/ClientChunkManager;lightingProvider:Lnet/minecraft/world/chunk/light/LightingProvider;
-
chunks
- Mappings:
Namespace Name Mixin selector official d
Ledw;d:Ledw$a;
intermediary field_16246
Lnet/minecraft/class_631;field_16246:Lnet/minecraft/class_631$class_3681;
named chunks
Lnet/minecraft/client/world/ClientChunkManager;chunks:Lnet/minecraft/client/world/ClientChunkManager$ClientChunkMap;
-
world
- Mappings:
Namespace Name Mixin selector official e
Ledw;e:Ledy;
intermediary field_16525
Lnet/minecraft/class_631;field_16525:Lnet/minecraft/class_638;
named world
Lnet/minecraft/client/world/ClientChunkManager;world:Lnet/minecraft/client/world/ClientWorld;
-
-
Constructor Details
-
ClientChunkManager
- Mappings:
Namespace Name Mixin selector official <init>
Ledw;<init>(Ledy;I)V
intermediary <init>
Lnet/minecraft/class_631;<init>(Lnet/minecraft/class_638;I)V
named <init>
Lnet/minecraft/client/world/ClientChunkManager;<init>(Lnet/minecraft/client/world/ClientWorld;I)V
-
-
Method Details
-
getLightingProvider
- Specified by:
getLightingProvider
in classChunkManager
- Mappings:
Namespace Name Mixin selector official l
Lcjo;l()Ldac;
intermediary method_12130
Lnet/minecraft/class_2802;method_12130()Lnet/minecraft/class_3568;
named getLightingProvider
Lnet/minecraft/world/chunk/ChunkManager;getLightingProvider()Lnet/minecraft/world/chunk/light/LightingProvider;
-
positionEquals
- Mappings:
Namespace Name Mixin selector official a
Ledw;a(Lcjw;II)Z
intermediary method_20181
Lnet/minecraft/class_631;method_20181(Lnet/minecraft/class_2818;II)Z
named positionEquals
Lnet/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 d
Ledw;d(II)V
intermediary method_2859
Lnet/minecraft/class_631;method_2859(II)V
named unload
Lnet/minecraft/client/world/ClientChunkManager;unload(II)V
-
getChunk
- Specified by:
getChunk
in classChunkManager
- Mappings:
Namespace Name Mixin selector official b
Ledw;b(IILcjp;Z)Lcjw;
intermediary method_2857
Lnet/minecraft/class_631;method_2857(IILnet/minecraft/class_2806;Z)Lnet/minecraft/class_2818;
named getChunk
Lnet/minecraft/client/world/ClientChunkManager;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;Z)Lnet/minecraft/world/chunk/WorldChunk;
-
getWorld
- Mappings:
Namespace Name Mixin selector official m
Lcjy;m()Lbsz;
intermediary method_16399
Lnet/minecraft/class_2823;method_16399()Lnet/minecraft/class_1922;
named getWorld
Lnet/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 a
Ledw;a(IILcjm;Lnw;Lmq;Ljava/util/BitSet;)Lcjw;
intermediary method_16020
Lnet/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 loadChunkFromPacket
Lnet/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 a
Ledw;a(Ljava/util/function/BooleanSupplier;)V
intermediary method_28102
Lnet/minecraft/class_631;method_28102(Ljava/util/function/BooleanSupplier;)V
named tick
Lnet/minecraft/client/world/ClientChunkManager;tick(Ljava/util/function/BooleanSupplier;)V
-
setChunkMapCenter
public void setChunkMapCenter(int x, int z)- Mappings:
Namespace Name Mixin selector official e
Ledw;e(II)V
intermediary method_20317
Lnet/minecraft/class_631;method_20317(II)V
named setChunkMapCenter
Lnet/minecraft/client/world/ClientChunkManager;setChunkMapCenter(II)V
-
updateLoadDistance
public void updateLoadDistance(int loadDistance)- Mappings:
Namespace Name Mixin selector official a
Ledw;a(I)V
intermediary method_20180
Lnet/minecraft/class_631;method_20180(I)V
named updateLoadDistance
Lnet/minecraft/client/world/ClientChunkManager;updateLoadDistance(I)V
-
getChunkMapRadius
private static int getChunkMapRadius(int loadDistance)- Mappings:
Namespace Name Mixin selector official b
Ledw;b(I)I
intermediary method_20230
Lnet/minecraft/class_631;method_20230(I)I
named getChunkMapRadius
Lnet/minecraft/client/world/ClientChunkManager;getChunkMapRadius(I)I
-
getDebugString
- Specified by:
getDebugString
in classChunkManager
- Mappings:
Namespace Name Mixin selector official e
Lcjo;e()Ljava/lang/String;
intermediary method_12122
Lnet/minecraft/class_2802;method_12122()Ljava/lang/String;
named getDebugString
Lnet/minecraft/world/chunk/ChunkManager;getDebugString()Ljava/lang/String;
-
getLoadedChunkCount
public int getLoadedChunkCount()- Mappings:
Namespace Name Mixin selector official h
Ledw;h()I
intermediary method_20182
Lnet/minecraft/class_631;method_20182()I
named getLoadedChunkCount
Lnet/minecraft/client/world/ClientChunkManager;getLoadedChunkCount()I
-
onLightUpdate
- Mappings:
Namespace Name Mixin selector official a
Lcjy;a(Lbue;Lgq;)V
intermediary method_12247
Lnet/minecraft/class_2823;method_12247(Lnet/minecraft/class_1944;Lnet/minecraft/class_4076;)V
named onLightUpdate
Lnet/minecraft/world/chunk/ChunkProvider;onLightUpdate(Lnet/minecraft/world/LightType;Lnet/minecraft/util/math/ChunkSectionPos;)V
-
shouldTickBlock
- Overrides:
shouldTickBlock
in classChunkManager
- Mappings:
Namespace Name Mixin selector official a
Lcjo;a(Lfx;)Z
intermediary method_20529
Lnet/minecraft/class_2802;method_20529(Lnet/minecraft/class_2338;)Z
named shouldTickBlock
Lnet/minecraft/world/chunk/ChunkManager;shouldTickBlock(Lnet/minecraft/util/math/BlockPos;)Z
-
shouldTickChunk
- Overrides:
shouldTickChunk
in classChunkManager
- Mappings:
Namespace Name Mixin selector official a
Lcjo;a(Lbta;)Z
intermediary method_20591
Lnet/minecraft/class_2802;method_20591(Lnet/minecraft/class_1923;)Z
named shouldTickChunk
Lnet/minecraft/world/chunk/ChunkManager;shouldTickChunk(Lnet/minecraft/util/math/ChunkPos;)Z
-