Package net.minecraft.server.world
Class ChunkTicketManager.DistanceFromNearestPlayerTracker
java.lang.Object
net.minecraft.world.chunk.light.LevelPropagator
net.minecraft.world.ChunkPosDistanceLevelPropagator
net.minecraft.server.world.ChunkTicketManager.DistanceFromNearestPlayerTracker
- Direct Known Subclasses:
ChunkTicketManager.NearbyChunkTicketUpdater
- Enclosing class:
- ChunkTicketManager
class ChunkTicketManager.DistanceFromNearestPlayerTracker extends ChunkPosDistanceLevelPropagator
- Mappings:
Namespace Name official aao$b
intermediary net/minecraft/class_3204$class_3205
named net/minecraft/server/world/ChunkTicketManager$DistanceFromNearestPlayerTracker
-
Field Summary
Fields Modifier and Type Field Description protected Long2ByteMap
distanceFromNearestPlayer
protected int
maxDistance
-
Constructor Summary
Constructors Modifier Constructor Description protected
DistanceFromNearestPlayerTracker(int int2)
-
Method Summary
Modifier and Type Method Description protected int
getInitialLevel(long id)
protected int
getLevel(long id)
private boolean
isPlayerInChunk(long chunkPos)
protected void
onDistanceChange(long pos, int oldDistance, int distance)
protected void
setLevel(long id, int level)
void
updateLevels()
Methods inherited from class net.minecraft.world.ChunkPosDistanceLevelPropagator
getPropagatedLevel, isMarker, propagateLevel, recalculateLevel, updateLevel
Methods inherited from class net.minecraft.world.chunk.light.LevelPropagator
applyPendingUpdates, getPendingUpdateCount, hasPendingUpdates, propagateLevel, removePendingUpdate, removePendingUpdateIf, resetLevel, updateLevel
-
Field Details
-
distanceFromNearestPlayer
- Mappings:
Namespace Name Mixin selector official a
Laao$b;a:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
intermediary field_13896
Lnet/minecraft/class_3204$class_3205;field_13896:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
named distanceFromNearestPlayer
Lnet/minecraft/server/world/ChunkTicketManager$DistanceFromNearestPlayerTracker;distanceFromNearestPlayer:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
-
maxDistance
protected final int maxDistance- Mappings:
Namespace Name Mixin selector official b
Laao$b;b:I
intermediary field_17461
Lnet/minecraft/class_3204$class_3205;field_17461:I
named maxDistance
Lnet/minecraft/server/world/ChunkTicketManager$DistanceFromNearestPlayerTracker;maxDistance:I
-
-
Constructor Details
-
DistanceFromNearestPlayerTracker
protected DistanceFromNearestPlayerTracker(int int2)- Mappings:
Namespace Name Mixin selector official <init>
Laao$b;<init>(Laao;I)V
intermediary <init>
Lnet/minecraft/class_3204$class_3205;<init>(Lnet/minecraft/class_3204;I)V
named <init>
Lnet/minecraft/server/world/ChunkTicketManager$DistanceFromNearestPlayerTracker;<init>(Lnet/minecraft/server/world/ChunkTicketManager;I)V
-
-
Method Details
-
getLevel
protected int getLevel(long id)- Specified by:
getLevel
in classLevelPropagator
- Mappings:
Namespace Name Mixin selector official c
Lczx;c(J)I
intermediary method_15480
Lnet/minecraft/class_3554;method_15480(J)I
named getLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;getLevel(J)I
-
setLevel
protected void setLevel(long id, int level)- Specified by:
setLevel
in classLevelPropagator
- Mappings:
Namespace Name Mixin selector official a
Lczx;a(JI)V
intermediary method_15485
Lnet/minecraft/class_3554;method_15485(JI)V
named setLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;setLevel(JI)V
-
onDistanceChange
protected void onDistanceChange(long pos, int oldDistance, int distance)- Mappings:
Namespace Name Mixin selector official a
Laao$b;a(JII)V
intermediary method_17657
Lnet/minecraft/class_3204$class_3205;method_17657(JII)V
named onDistanceChange
Lnet/minecraft/server/world/ChunkTicketManager$DistanceFromNearestPlayerTracker;onDistanceChange(JII)V
-
getInitialLevel
protected int getInitialLevel(long id)- Specified by:
getInitialLevel
in classChunkPosDistanceLevelPropagator
- Mappings:
Namespace Name Mixin selector official b
Laal;b(J)I
intermediary method_14028
Lnet/minecraft/class_3196;method_14028(J)I
named getInitialLevel
Lnet/minecraft/world/ChunkPosDistanceLevelPropagator;getInitialLevel(J)I
-
isPlayerInChunk
private boolean isPlayerInChunk(long chunkPos)- Mappings:
Namespace Name Mixin selector official d
Laao$b;d(J)Z
intermediary method_14056
Lnet/minecraft/class_3204$class_3205;method_14056(J)Z
named isPlayerInChunk
Lnet/minecraft/server/world/ChunkTicketManager$DistanceFromNearestPlayerTracker;isPlayerInChunk(J)Z
-
updateLevels
public void updateLevels()- Mappings:
Namespace Name Mixin selector official a
Laao$b;a()V
intermediary method_14057
Lnet/minecraft/class_3204$class_3205;method_14057()V
named updateLevels
Lnet/minecraft/server/world/ChunkTicketManager$DistanceFromNearestPlayerTracker;updateLevels()V
-