Package net.minecraft.server.world
Class ChunkTicketManager
java.lang.Object
net.minecraft.server.world.ChunkTicketManager
- Direct Known Subclasses:
ThreadedAnvilChunkStorage.TicketManager
- Mappings:
Namespace Name official ahw
intermediary net/minecraft/class_3204
named net/minecraft/server/world/ChunkTicketManager
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
private class
private class
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
(package private) final Set<ChunkHolder>
(package private) final LongSet
private final ChunkTicketManager.DistanceFromNearestPlayerTracker
private final ChunkTicketManager.TicketDistanceLevelPropagator
private static final int
private static final int
private static final int
private static final int
(package private) final ChunkTaskPrioritySystem
(package private) static final Logger
(package private) final Executor
(package private) static final int
private final ChunkTicketManager.NearbyChunkTicketUpdater
(package private) final Long2ObjectMap<ObjectSet<ServerPlayerEntity>>
(package private) final MessageListener<ChunkTaskPrioritySystem.Task<Runnable>>
(package private) final MessageListener<ChunkTaskPrioritySystem.UnblockingMessage>
private int
private final SimulationDistanceLevelPropagator
(package private) final Long2ObjectOpenHashMap<SortedArraySet<ChunkTicket<?>>>
-
Constructor Summary
ModifierConstructorDescriptionprotected
ChunkTicketManager
(Executor workerExecutor, Executor mainThreadExecutor) -
Method Summary
Modifier and TypeMethodDescription(package private) void
addTicket
(long position, ChunkTicket<?> ticket) <T> void
addTicket
(ChunkTicketType<T> type, ChunkPos pos, int radius, T argument) <T> void
addTicketWithLevel
(ChunkTicketType<T> type, ChunkPos pos, int level, T argument) private void
protected abstract @Nullable ChunkHolder
getChunkHolder
(long pos) private static int
getLevel
(SortedArraySet<ChunkTicket<?>> tickets) private int
(package private) SimulationDistanceLevelPropagator
int
protected String
getTicket
(long pos) private SortedArraySet<ChunkTicket<?>>
getTicketSet
(long position) void
handleChunkEnter
(ChunkSectionPos pos, ServerPlayerEntity player) void
handleChunkLeave
(ChunkSectionPos pos, ServerPlayerEntity player) protected abstract boolean
isUnloaded
(long pos) protected void
purge()
void
(package private) void
removeTicket
(long pos, ChunkTicket<?> ticket) <T> void
removeTicket
(ChunkTicketType<T> type, ChunkPos pos, int radius, T argument) <T> void
removeTicketWithLevel
(ChunkTicketType<T> type, ChunkPos pos, int level, T argument) protected void
setChunkForced
(ChunkPos pos, boolean forced) protected abstract @Nullable ChunkHolder
setLevel
(long pos, int level, @Nullable ChunkHolder holder, int int2) void
setSimulationDistance
(int simulationDistance) protected void
setWatchDistance
(int viewDistance) boolean
boolean
shouldTick
(long chunkPos) boolean
shouldTickBlocks
(long chunkPos) boolean
shouldTickEntities
(long chunkPos) boolean
tick
(ThreadedAnvilChunkStorage chunkStorage)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lahw;a:Lorg/slf4j/Logger;
intermediary field_16211
Lnet/minecraft/class_3204;field_16211:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/server/world/ChunkTicketManager;LOGGER:Lorg/slf4j/Logger;
-
field_29764
private static final int field_29764- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lahw;b:I
intermediary field_29764
Lnet/minecraft/class_3204;field_29764:I
named field_29764
Lnet/minecraft/server/world/ChunkTicketManager;field_29764:I
-
NEARBY_PLAYER_TICKET_LEVEL
static final int NEARBY_PLAYER_TICKET_LEVEL- Mappings:
Namespace Name Mixin selector official c
Lahw;c:I
intermediary field_17452
Lnet/minecraft/class_3204;field_17452:I
named NEARBY_PLAYER_TICKET_LEVEL
Lnet/minecraft/server/world/ChunkTicketManager;NEARBY_PLAYER_TICKET_LEVEL:I
-
field_29765
private static final int field_29765- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lahw;d:I
intermediary field_29765
Lnet/minecraft/class_3204;field_29765:I
named field_29765
Lnet/minecraft/server/world/ChunkTicketManager;field_29765:I
-
field_34884
private static final int field_34884- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lahw;e:I
intermediary field_34884
Lnet/minecraft/class_3204;field_34884:I
named field_34884
Lnet/minecraft/server/world/ChunkTicketManager;field_34884:I
-
field_34885
private static final int field_34885- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lahw;f:I
intermediary field_34885
Lnet/minecraft/class_3204;field_34885:I
named field_34885
Lnet/minecraft/server/world/ChunkTicketManager;field_34885:I
-
playersByChunkPos
- Mappings:
Namespace Name Mixin selector official g
Lahw;g:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
intermediary field_17453
Lnet/minecraft/class_3204;field_17453:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
named playersByChunkPos
Lnet/minecraft/server/world/ChunkTicketManager;playersByChunkPos:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
ticketsByPosition
- Mappings:
Namespace Name Mixin selector official h
Lahw;h:Lit/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap;
intermediary field_13895
Lnet/minecraft/class_3204;field_13895:Lit/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap;
named ticketsByPosition
Lnet/minecraft/server/world/ChunkTicketManager;ticketsByPosition:Lit/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap;
-
distanceFromTicketTracker
- Mappings:
Namespace Name Mixin selector official i
Lahw;i:Lahw$a;
intermediary field_18252
Lnet/minecraft/class_3204;field_18252:Lnet/minecraft/class_3204$class_4077;
named distanceFromTicketTracker
Lnet/minecraft/server/world/ChunkTicketManager;distanceFromTicketTracker:Lnet/minecraft/server/world/ChunkTicketManager$TicketDistanceLevelPropagator;
-
distanceFromNearestPlayerTracker
- Mappings:
Namespace Name Mixin selector official j
Lahw;j:Lahw$b;
intermediary field_17454
Lnet/minecraft/class_3204;field_17454:Lnet/minecraft/class_3204$class_3205;
named distanceFromNearestPlayerTracker
Lnet/minecraft/server/world/ChunkTicketManager;distanceFromNearestPlayerTracker:Lnet/minecraft/server/world/ChunkTicketManager$DistanceFromNearestPlayerTracker;
-
simulationDistanceTracker
- Mappings:
Namespace Name Mixin selector official k
Lahw;k:Laij;
intermediary field_34886
Lnet/minecraft/class_3204;field_34886:Lnet/minecraft/class_6609;
named simulationDistanceTracker
Lnet/minecraft/server/world/ChunkTicketManager;simulationDistanceTracker:Lnet/minecraft/world/SimulationDistanceLevelPropagator;
-
nearbyChunkTicketUpdater
- Mappings:
Namespace Name Mixin selector official l
Lahw;l:Lahw$c;
intermediary field_17455
Lnet/minecraft/class_3204;field_17455:Lnet/minecraft/class_3204$class_3948;
named nearbyChunkTicketUpdater
Lnet/minecraft/server/world/ChunkTicketManager;nearbyChunkTicketUpdater:Lnet/minecraft/server/world/ChunkTicketManager$NearbyChunkTicketUpdater;
-
chunkHolders
- Mappings:
Namespace Name Mixin selector official m
Lahw;m:Ljava/util/Set;
intermediary field_16210
Lnet/minecraft/class_3204;field_16210:Ljava/util/Set;
named chunkHolders
Lnet/minecraft/server/world/ChunkTicketManager;chunkHolders:Ljava/util/Set;
-
levelUpdateListener
- Mappings:
Namespace Name Mixin selector official n
Lahw;n:Lahs;
intermediary field_17456
Lnet/minecraft/class_3204;field_17456:Lnet/minecraft/class_3900;
named levelUpdateListener
Lnet/minecraft/server/world/ChunkTicketManager;levelUpdateListener:Lnet/minecraft/server/world/ChunkTaskPrioritySystem;
-
playerTicketThrottler
- Mappings:
Namespace Name Mixin selector official o
Lahw;o:Lbcm;
intermediary field_17457
Lnet/minecraft/class_3204;field_17457:Lnet/minecraft/class_3906;
named playerTicketThrottler
Lnet/minecraft/server/world/ChunkTicketManager;playerTicketThrottler:Lnet/minecraft/util/thread/MessageListener;
-
playerTicketThrottlerUnblocker
- Mappings:
Namespace Name Mixin selector official p
Lahw;p:Lbcm;
intermediary field_17458
Lnet/minecraft/class_3204;field_17458:Lnet/minecraft/class_3906;
named playerTicketThrottlerUnblocker
Lnet/minecraft/server/world/ChunkTicketManager;playerTicketThrottlerUnblocker:Lnet/minecraft/util/thread/MessageListener;
-
chunkPositions
- Mappings:
Namespace Name Mixin selector official q
Lahw;q:Lit/unimi/dsi/fastutil/longs/LongSet;
intermediary field_17459
Lnet/minecraft/class_3204;field_17459:Lit/unimi/dsi/fastutil/longs/LongSet;
named chunkPositions
Lnet/minecraft/server/world/ChunkTicketManager;chunkPositions:Lit/unimi/dsi/fastutil/longs/LongSet;
-
mainThreadExecutor
- Mappings:
Namespace Name Mixin selector official r
Lahw;r:Ljava/util/concurrent/Executor;
intermediary field_17460
Lnet/minecraft/class_3204;field_17460:Ljava/util/concurrent/Executor;
named mainThreadExecutor
Lnet/minecraft/server/world/ChunkTicketManager;mainThreadExecutor:Ljava/util/concurrent/Executor;
-
age
private long age- Mappings:
Namespace Name Mixin selector official s
Lahw;s:J
intermediary field_13894
Lnet/minecraft/class_3204;field_13894:J
named age
Lnet/minecraft/server/world/ChunkTicketManager;age:J
-
simulationDistance
private int simulationDistance- Mappings:
Namespace Name Mixin selector official t
Lahw;t:I
intermediary field_34887
Lnet/minecraft/class_3204;field_34887:I
named simulationDistance
Lnet/minecraft/server/world/ChunkTicketManager;simulationDistance:I
-
-
Constructor Details
-
ChunkTicketManager
- Mappings:
Namespace Name Mixin selector official <init>
Lahw;<init>(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)V
intermediary <init>
Lnet/minecraft/class_3204;<init>(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)V
named <init>
Lnet/minecraft/server/world/ChunkTicketManager;<init>(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)V
-
-
Method Details
-
purge
protected void purge()- Mappings:
Namespace Name Mixin selector official a
Lahw;a()V
intermediary method_14045
Lnet/minecraft/class_3204;method_14045()V
named purge
Lnet/minecraft/server/world/ChunkTicketManager;purge()V
-
getLevel
- Mappings:
Namespace Name Mixin selector official a
Lahw;a(Lapm;)I
intermediary method_14046
Lnet/minecraft/class_3204;method_14046(Lnet/minecraft/class_4706;)I
named getLevel
Lnet/minecraft/server/world/ChunkTicketManager;getLevel(Lnet/minecraft/util/collection/SortedArraySet;)I
-
isUnloaded
protected abstract boolean isUnloaded(long pos) - Mappings:
Namespace Name Mixin selector official a
Lahw;a(J)Z
intermediary method_14035
Lnet/minecraft/class_3204;method_14035(J)Z
named isUnloaded
Lnet/minecraft/server/world/ChunkTicketManager;isUnloaded(J)Z
-
getChunkHolder
- Mappings:
Namespace Name Mixin selector official b
Lahw;b(J)Lahp;
intermediary method_14038
Lnet/minecraft/class_3204;method_14038(J)Lnet/minecraft/class_3193;
named getChunkHolder
Lnet/minecraft/server/world/ChunkTicketManager;getChunkHolder(J)Lnet/minecraft/server/world/ChunkHolder;
-
setLevel
@Nullable protected abstract @Nullable ChunkHolder setLevel(long pos, int level, @Nullable @Nullable ChunkHolder holder, int int2) - Mappings:
Namespace Name Mixin selector official a
Lahw;a(JILahp;I)Lahp;
intermediary method_14053
Lnet/minecraft/class_3204;method_14053(JILnet/minecraft/class_3193;I)Lnet/minecraft/class_3193;
named setLevel
Lnet/minecraft/server/world/ChunkTicketManager;setLevel(JILnet/minecraft/server/world/ChunkHolder;I)Lnet/minecraft/server/world/ChunkHolder;
-
tick
- Mappings:
Namespace Name Mixin selector official a
Lahw;a(Lahq;)Z
intermediary method_15892
Lnet/minecraft/class_3204;method_15892(Lnet/minecraft/class_3898;)Z
named tick
Lnet/minecraft/server/world/ChunkTicketManager;tick(Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;)Z
-
addTicket
- Mappings:
Namespace Name Mixin selector official a
Lahw;a(JLaih;)V
intermediary method_14042
Lnet/minecraft/class_3204;method_14042(JLnet/minecraft/class_3228;)V
named addTicket
Lnet/minecraft/server/world/ChunkTicketManager;addTicket(JLnet/minecraft/server/world/ChunkTicket;)V
-
removeTicket
- Mappings:
Namespace Name Mixin selector official b
Lahw;b(JLaih;)V
intermediary method_17645
Lnet/minecraft/class_3204;method_17645(JLnet/minecraft/class_3228;)V
named removeTicket
Lnet/minecraft/server/world/ChunkTicketManager;removeTicket(JLnet/minecraft/server/world/ChunkTicket;)V
-
addTicketWithLevel
- Mappings:
Namespace Name Mixin selector official a
Lahw;a(Laii;Lclm;ILjava/lang/Object;)V
intermediary method_17290
Lnet/minecraft/class_3204;method_17290(Lnet/minecraft/class_3230;Lnet/minecraft/class_1923;ILjava/lang/Object;)V
named addTicketWithLevel
Lnet/minecraft/server/world/ChunkTicketManager;addTicketWithLevel(Lnet/minecraft/server/world/ChunkTicketType;Lnet/minecraft/util/math/ChunkPos;ILjava/lang/Object;)V
-
removeTicketWithLevel
- Mappings:
Namespace Name Mixin selector official b
Lahw;b(Laii;Lclm;ILjava/lang/Object;)V
intermediary method_20444
Lnet/minecraft/class_3204;method_20444(Lnet/minecraft/class_3230;Lnet/minecraft/class_1923;ILjava/lang/Object;)V
named removeTicketWithLevel
Lnet/minecraft/server/world/ChunkTicketManager;removeTicketWithLevel(Lnet/minecraft/server/world/ChunkTicketType;Lnet/minecraft/util/math/ChunkPos;ILjava/lang/Object;)V
-
addTicket
- Mappings:
Namespace Name Mixin selector official c
Lahw;c(Laii;Lclm;ILjava/lang/Object;)V
intermediary method_17291
Lnet/minecraft/class_3204;method_17291(Lnet/minecraft/class_3230;Lnet/minecraft/class_1923;ILjava/lang/Object;)V
named addTicket
Lnet/minecraft/server/world/ChunkTicketManager;addTicket(Lnet/minecraft/server/world/ChunkTicketType;Lnet/minecraft/util/math/ChunkPos;ILjava/lang/Object;)V
-
removeTicket
- Mappings:
Namespace Name Mixin selector official d
Lahw;d(Laii;Lclm;ILjava/lang/Object;)V
intermediary method_17292
Lnet/minecraft/class_3204;method_17292(Lnet/minecraft/class_3230;Lnet/minecraft/class_1923;ILjava/lang/Object;)V
named removeTicket
Lnet/minecraft/server/world/ChunkTicketManager;removeTicket(Lnet/minecraft/server/world/ChunkTicketType;Lnet/minecraft/util/math/ChunkPos;ILjava/lang/Object;)V
-
getTicketSet
- Mappings:
Namespace Name Mixin selector official g
Lahw;g(J)Lapm;
intermediary method_14050
Lnet/minecraft/class_3204;method_14050(J)Lnet/minecraft/class_4706;
named getTicketSet
Lnet/minecraft/server/world/ChunkTicketManager;getTicketSet(J)Lnet/minecraft/util/collection/SortedArraySet;
-
setChunkForced
- Mappings:
Namespace Name Mixin selector official a
Lahw;a(Lclm;Z)V
intermediary method_14036
Lnet/minecraft/class_3204;method_14036(Lnet/minecraft/class_1923;Z)V
named setChunkForced
Lnet/minecraft/server/world/ChunkTicketManager;setChunkForced(Lnet/minecraft/util/math/ChunkPos;Z)V
-
handleChunkEnter
- Mappings:
Namespace Name Mixin selector official a
Lahw;a(Lhx;Laie;)V
intermediary method_14048
Lnet/minecraft/class_3204;method_14048(Lnet/minecraft/class_4076;Lnet/minecraft/class_3222;)V
named handleChunkEnter
Lnet/minecraft/server/world/ChunkTicketManager;handleChunkEnter(Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/server/network/ServerPlayerEntity;)V
-
handleChunkLeave
- Mappings:
Namespace Name Mixin selector official b
Lahw;b(Lhx;Laie;)V
intermediary method_14051
Lnet/minecraft/class_3204;method_14051(Lnet/minecraft/class_4076;Lnet/minecraft/class_3222;)V
named handleChunkLeave
Lnet/minecraft/server/world/ChunkTicketManager;handleChunkLeave(Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/server/network/ServerPlayerEntity;)V
-
getPlayerSimulationLevel
private int getPlayerSimulationLevel()- Mappings:
Namespace Name Mixin selector official g
Lahw;g()I
intermediary method_38633
Lnet/minecraft/class_3204;method_38633()I
named getPlayerSimulationLevel
Lnet/minecraft/server/world/ChunkTicketManager;getPlayerSimulationLevel()I
-
shouldTickEntities
public boolean shouldTickEntities(long chunkPos) - Mappings:
Namespace Name Mixin selector official c
Lahw;c(J)Z
intermediary method_38630
Lnet/minecraft/class_3204;method_38630(J)Z
named shouldTickEntities
Lnet/minecraft/server/world/ChunkTicketManager;shouldTickEntities(J)Z
-
shouldTickBlocks
public boolean shouldTickBlocks(long chunkPos) - Mappings:
Namespace Name Mixin selector official d
Lahw;d(J)Z
intermediary method_38632
Lnet/minecraft/class_3204;method_38632(J)Z
named shouldTickBlocks
Lnet/minecraft/server/world/ChunkTicketManager;shouldTickBlocks(J)Z
-
getTicket
- Mappings:
Namespace Name Mixin selector official e
Lahw;e(J)Ljava/lang/String;
intermediary method_21623
Lnet/minecraft/class_3204;method_21623(J)Ljava/lang/String;
named getTicket
Lnet/minecraft/server/world/ChunkTicketManager;getTicket(J)Ljava/lang/String;
-
setWatchDistance
protected void setWatchDistance(int viewDistance) - Mappings:
Namespace Name Mixin selector official a
Lahw;a(I)V
intermediary method_14049
Lnet/minecraft/class_3204;method_14049(I)V
named setWatchDistance
Lnet/minecraft/server/world/ChunkTicketManager;setWatchDistance(I)V
-
setSimulationDistance
public void setSimulationDistance(int simulationDistance) - Mappings:
Namespace Name Mixin selector official b
Lahw;b(I)V
intermediary method_38629
Lnet/minecraft/class_3204;method_38629(I)V
named setSimulationDistance
Lnet/minecraft/server/world/ChunkTicketManager;setSimulationDistance(I)V
-
getTickedChunkCount
public int getTickedChunkCount()- Mappings:
Namespace Name Mixin selector official b
Lahw;b()I
intermediary method_14052
Lnet/minecraft/class_3204;method_14052()I
named getTickedChunkCount
Lnet/minecraft/server/world/ChunkTicketManager;getTickedChunkCount()I
-
shouldTick
public boolean shouldTick(long chunkPos) - Mappings:
Namespace Name Mixin selector official f
Lahw;f(J)Z
intermediary method_20800
Lnet/minecraft/class_3204;method_20800(J)Z
named shouldTick
Lnet/minecraft/server/world/ChunkTicketManager;shouldTick(J)Z
-
toDumpString
- Mappings:
Namespace Name Mixin selector official c
Lahw;c()Ljava/lang/String;
intermediary method_21683
Lnet/minecraft/class_3204;method_21683()Ljava/lang/String;
named toDumpString
Lnet/minecraft/server/world/ChunkTicketManager;toDumpString()Ljava/lang/String;
-
dump
- Mappings:
Namespace Name Mixin selector official a
Lahw;a(Ljava/lang/String;)V
intermediary method_34876
Lnet/minecraft/class_3204;method_34876(Ljava/lang/String;)V
named dump
Lnet/minecraft/server/world/ChunkTicketManager;dump(Ljava/lang/String;)V
-
getSimulationDistanceTracker
SimulationDistanceLevelPropagator getSimulationDistanceTracker()- Mappings:
Namespace Name Mixin selector official d
Lahw;d()Laij;
intermediary method_38631
Lnet/minecraft/class_3204;method_38631()Lnet/minecraft/class_6609;
named getSimulationDistanceTracker
Lnet/minecraft/server/world/ChunkTicketManager;getSimulationDistanceTracker()Lnet/minecraft/world/SimulationDistanceLevelPropagator;
-
removePersistentTickets
public void removePersistentTickets()- Mappings:
Namespace Name Mixin selector official e
Lahw;e()V
intermediary method_39995
Lnet/minecraft/class_3204;method_39995()V
named removePersistentTickets
Lnet/minecraft/server/world/ChunkTicketManager;removePersistentTickets()V
-
shouldDelayShutdown
public boolean shouldDelayShutdown()- Mappings:
Namespace Name Mixin selector official f
Lahw;f()Z
intermediary method_39996
Lnet/minecraft/class_3204;method_39996()Z
named shouldDelayShutdown
Lnet/minecraft/server/world/ChunkTicketManager;shouldDelayShutdown()Z
-