Package net.minecraft.server.world
Class ChunkTicketManager
java.lang.Object
net.minecraft.server.world.ChunkTicketManager
- Direct Known Subclasses:
ServerChunkLoadingManager.TicketManager
- Mappings:
Namespace Name named net/minecraft/server/world/ChunkTicketManager
intermediary net/minecraft/class_3204
official aqc
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
private class
private class
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
(package private) final Set
<ChunkHolder> private final ChunkTicketManager.DistanceFromNearestPlayerTracker
private final ChunkTicketManager.TicketDistanceLevelPropagator
private static final int
(package private) final LongSet
(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
update
(ServerChunkLoadingManager chunkLoadingManager) Update the states related to chunk tickets and chunk loading levels, which mainly involves three kind of updates: Add or remove PLAYER tickets when necessary. Update the expected loading states of chunks depending on their new levels. Special updates of chunks with PLAYER tickets added recently.
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/server/world/ChunkTicketManager;LOGGER:Lorg/slf4j/Logger;
intermediary field_16211
Lnet/minecraft/class_3204;field_16211:Lorg/slf4j/Logger;
official a
Laqc;a:Lorg/slf4j/Logger;
-
NEARBY_PLAYER_TICKET_LEVEL
static final int NEARBY_PLAYER_TICKET_LEVEL- Mappings:
Namespace Name Mixin selector named NEARBY_PLAYER_TICKET_LEVEL
Lnet/minecraft/server/world/ChunkTicketManager;NEARBY_PLAYER_TICKET_LEVEL:I
intermediary field_17452
Lnet/minecraft/class_3204;field_17452:I
official b
Laqc;b:I
-
field_29765
private static final int field_29765- See Also:
- Mappings:
Namespace Name Mixin selector named field_29765
Lnet/minecraft/server/world/ChunkTicketManager;field_29765:I
intermediary field_29765
Lnet/minecraft/class_3204;field_29765:I
official c
Laqc;c:I
-
playersByChunkPos
- Mappings:
Namespace Name Mixin selector named playersByChunkPos
Lnet/minecraft/server/world/ChunkTicketManager;playersByChunkPos:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
intermediary field_17453
Lnet/minecraft/class_3204;field_17453:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
official d
Laqc;d:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
ticketsByPosition
- Mappings:
Namespace Name Mixin selector named ticketsByPosition
Lnet/minecraft/server/world/ChunkTicketManager;ticketsByPosition:Lit/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap;
intermediary field_13895
Lnet/minecraft/class_3204;field_13895:Lit/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap;
official e
Laqc;e:Lit/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap;
-
distanceFromTicketTracker
- Mappings:
Namespace Name Mixin selector named distanceFromTicketTracker
Lnet/minecraft/server/world/ChunkTicketManager;distanceFromTicketTracker:Lnet/minecraft/server/world/ChunkTicketManager$TicketDistanceLevelPropagator;
intermediary field_18252
Lnet/minecraft/class_3204;field_18252:Lnet/minecraft/class_3204$class_4077;
official f
Laqc;f:Laqc$a;
-
distanceFromNearestPlayerTracker
- Mappings:
Namespace Name Mixin selector named distanceFromNearestPlayerTracker
Lnet/minecraft/server/world/ChunkTicketManager;distanceFromNearestPlayerTracker:Lnet/minecraft/server/world/ChunkTicketManager$DistanceFromNearestPlayerTracker;
intermediary field_17454
Lnet/minecraft/class_3204;field_17454:Lnet/minecraft/class_3204$class_3205;
official g
Laqc;g:Laqc$b;
-
simulationDistanceTracker
- Mappings:
Namespace Name Mixin selector named simulationDistanceTracker
Lnet/minecraft/server/world/ChunkTicketManager;simulationDistanceTracker:Lnet/minecraft/world/SimulationDistanceLevelPropagator;
intermediary field_34886
Lnet/minecraft/class_3204;field_34886:Lnet/minecraft/class_6609;
official h
Laqc;h:Laqs;
-
nearbyChunkTicketUpdater
- Mappings:
Namespace Name Mixin selector named nearbyChunkTicketUpdater
Lnet/minecraft/server/world/ChunkTicketManager;nearbyChunkTicketUpdater:Lnet/minecraft/server/world/ChunkTicketManager$NearbyChunkTicketUpdater;
intermediary field_17455
Lnet/minecraft/class_3204;field_17455:Lnet/minecraft/class_3204$class_3948;
official i
Laqc;i:Laqc$c;
-
chunkHoldersWithPendingUpdates
- Mappings:
Namespace Name Mixin selector named chunkHoldersWithPendingUpdates
Lnet/minecraft/server/world/ChunkTicketManager;chunkHoldersWithPendingUpdates:Ljava/util/Set;
intermediary field_16210
Lnet/minecraft/class_3204;field_16210:Ljava/util/Set;
official j
Laqc;j:Ljava/util/Set;
-
levelUpdateListener
- Mappings:
Namespace Name Mixin selector named levelUpdateListener
Lnet/minecraft/server/world/ChunkTicketManager;levelUpdateListener:Lnet/minecraft/server/world/ChunkTaskPrioritySystem;
intermediary field_17456
Lnet/minecraft/class_3204;field_17456:Lnet/minecraft/class_3900;
official k
Laqc;k:Lapw;
-
playerTicketThrottler
- Mappings:
Namespace Name Mixin selector named playerTicketThrottler
Lnet/minecraft/server/world/ChunkTicketManager;playerTicketThrottler:Lnet/minecraft/util/thread/MessageListener;
intermediary field_17457
Lnet/minecraft/class_3204;field_17457:Lnet/minecraft/class_3906;
official l
Laqc;l:Lboz;
-
playerTicketThrottlerUnblocker
- Mappings:
Namespace Name Mixin selector named playerTicketThrottlerUnblocker
Lnet/minecraft/server/world/ChunkTicketManager;playerTicketThrottlerUnblocker:Lnet/minecraft/util/thread/MessageListener;
intermediary field_17458
Lnet/minecraft/class_3204;field_17458:Lnet/minecraft/class_3906;
official m
Laqc;m:Lboz;
-
freshPlayerTicketPositions
- Mappings:
Namespace Name Mixin selector named freshPlayerTicketPositions
Lnet/minecraft/server/world/ChunkTicketManager;freshPlayerTicketPositions:Lit/unimi/dsi/fastutil/longs/LongSet;
intermediary field_17459
Lnet/minecraft/class_3204;field_17459:Lit/unimi/dsi/fastutil/longs/LongSet;
official n
Laqc;n:Lit/unimi/dsi/fastutil/longs/LongSet;
-
mainThreadExecutor
- Mappings:
Namespace Name Mixin selector named mainThreadExecutor
Lnet/minecraft/server/world/ChunkTicketManager;mainThreadExecutor:Ljava/util/concurrent/Executor;
intermediary field_17460
Lnet/minecraft/class_3204;field_17460:Ljava/util/concurrent/Executor;
official o
Laqc;o:Ljava/util/concurrent/Executor;
-
age
private long age- Mappings:
Namespace Name Mixin selector named age
Lnet/minecraft/server/world/ChunkTicketManager;age:J
intermediary field_13894
Lnet/minecraft/class_3204;field_13894:J
official p
Laqc;p:J
-
simulationDistance
private int simulationDistance- Mappings:
Namespace Name Mixin selector named simulationDistance
Lnet/minecraft/server/world/ChunkTicketManager;simulationDistance:I
intermediary field_34887
Lnet/minecraft/class_3204;field_34887:I
official q
Laqc;q:I
-
-
Constructor Details
-
ChunkTicketManager
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/server/world/ChunkTicketManager;<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
official <init>
Laqc;<init>(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)V
-
-
Method Details
-
purge
protected void purge()- Mappings:
Namespace Name Mixin selector named purge
Lnet/minecraft/server/world/ChunkTicketManager;purge()V
intermediary method_14045
Lnet/minecraft/class_3204;method_14045()V
official a
Laqc;a()V
-
getLevel
- Mappings:
Namespace Name Mixin selector named getLevel
Lnet/minecraft/server/world/ChunkTicketManager;getLevel(Lnet/minecraft/util/collection/SortedArraySet;)I
intermediary method_14046
Lnet/minecraft/class_3204;method_14046(Lnet/minecraft/class_4706;)I
official a
Laqc;a(Layy;)I
-
isUnloaded
protected abstract boolean isUnloaded(long pos) - Mappings:
Namespace Name Mixin selector named isUnloaded
Lnet/minecraft/server/world/ChunkTicketManager;isUnloaded(J)Z
intermediary method_14035
Lnet/minecraft/class_3204;method_14035(J)Z
official a
Laqc;a(J)Z
-
getChunkHolder
- Mappings:
Namespace Name Mixin selector named getChunkHolder
Lnet/minecraft/server/world/ChunkTicketManager;getChunkHolder(J)Lnet/minecraft/server/world/ChunkHolder;
intermediary method_14038
Lnet/minecraft/class_3204;method_14038(J)Lnet/minecraft/class_3193;
official b
Laqc;b(J)Lapr;
-
setLevel
@Nullable protected abstract @Nullable ChunkHolder setLevel(long pos, int level, @Nullable @Nullable ChunkHolder holder, int int2) - Mappings:
Namespace Name Mixin selector named setLevel
Lnet/minecraft/server/world/ChunkTicketManager;setLevel(JILnet/minecraft/server/world/ChunkHolder;I)Lnet/minecraft/server/world/ChunkHolder;
intermediary method_14053
Lnet/minecraft/class_3204;method_14053(JILnet/minecraft/class_3193;I)Lnet/minecraft/class_3193;
official a
Laqc;a(JILapr;I)Lapr;
-
update
Update the states related to chunk tickets and chunk loading levels, which mainly involves three kind of updates:- Add or remove PLAYER tickets when necessary.
- Update the expected loading states of chunks depending on their new levels.
- Special updates of chunks with PLAYER tickets added recently.
- Mappings:
Namespace Name Mixin selector named update
Lnet/minecraft/server/world/ChunkTicketManager;update(Lnet/minecraft/server/world/ServerChunkLoadingManager;)Z
intermediary method_15892
Lnet/minecraft/class_3204;method_15892(Lnet/minecraft/class_3898;)Z
official a
Laqc;a(Lapt;)Z
-
addTicket
- Mappings:
Namespace Name Mixin selector named addTicket
Lnet/minecraft/server/world/ChunkTicketManager;addTicket(JLnet/minecraft/server/world/ChunkTicket;)V
intermediary method_14042
Lnet/minecraft/class_3204;method_14042(JLnet/minecraft/class_3228;)V
official a
Laqc;a(JLaqq;)V
-
removeTicket
- Mappings:
Namespace Name Mixin selector named removeTicket
Lnet/minecraft/server/world/ChunkTicketManager;removeTicket(JLnet/minecraft/server/world/ChunkTicket;)V
intermediary method_17645
Lnet/minecraft/class_3204;method_17645(JLnet/minecraft/class_3228;)V
official b
Laqc;b(JLaqq;)V
-
addTicketWithLevel
- Mappings:
Namespace Name Mixin selector named addTicketWithLevel
Lnet/minecraft/server/world/ChunkTicketManager;addTicketWithLevel(Lnet/minecraft/server/world/ChunkTicketType;Lnet/minecraft/util/math/ChunkPos;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
official a
Laqc;a(Laqr;Ldbn;ILjava/lang/Object;)V
-
removeTicketWithLevel
- Mappings:
Namespace Name Mixin selector named removeTicketWithLevel
Lnet/minecraft/server/world/ChunkTicketManager;removeTicketWithLevel(Lnet/minecraft/server/world/ChunkTicketType;Lnet/minecraft/util/math/ChunkPos;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
official b
Laqc;b(Laqr;Ldbn;ILjava/lang/Object;)V
-
addTicket
- Mappings:
Namespace Name Mixin selector named addTicket
Lnet/minecraft/server/world/ChunkTicketManager;addTicket(Lnet/minecraft/server/world/ChunkTicketType;Lnet/minecraft/util/math/ChunkPos;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
official c
Laqc;c(Laqr;Ldbn;ILjava/lang/Object;)V
-
removeTicket
- Mappings:
Namespace Name Mixin selector named removeTicket
Lnet/minecraft/server/world/ChunkTicketManager;removeTicket(Lnet/minecraft/server/world/ChunkTicketType;Lnet/minecraft/util/math/ChunkPos;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
official d
Laqc;d(Laqr;Ldbn;ILjava/lang/Object;)V
-
getTicketSet
- Mappings:
Namespace Name Mixin selector named getTicketSet
Lnet/minecraft/server/world/ChunkTicketManager;getTicketSet(J)Lnet/minecraft/util/collection/SortedArraySet;
intermediary method_14050
Lnet/minecraft/class_3204;method_14050(J)Lnet/minecraft/class_4706;
official g
Laqc;g(J)Layy;
-
setChunkForced
- Mappings:
Namespace Name Mixin selector named setChunkForced
Lnet/minecraft/server/world/ChunkTicketManager;setChunkForced(Lnet/minecraft/util/math/ChunkPos;Z)V
intermediary method_14036
Lnet/minecraft/class_3204;method_14036(Lnet/minecraft/class_1923;Z)V
official a
Laqc;a(Ldbn;Z)V
-
handleChunkEnter
- Mappings:
Namespace Name Mixin selector named handleChunkEnter
Lnet/minecraft/server/world/ChunkTicketManager;handleChunkEnter(Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_14048
Lnet/minecraft/class_3204;method_14048(Lnet/minecraft/class_4076;Lnet/minecraft/class_3222;)V
official a
Laqc;a(Lkc;Laqn;)V
-
handleChunkLeave
- Mappings:
Namespace Name Mixin selector named handleChunkLeave
Lnet/minecraft/server/world/ChunkTicketManager;handleChunkLeave(Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_14051
Lnet/minecraft/class_3204;method_14051(Lnet/minecraft/class_4076;Lnet/minecraft/class_3222;)V
official b
Laqc;b(Lkc;Laqn;)V
-
getPlayerSimulationLevel
private int getPlayerSimulationLevel()- Mappings:
Namespace Name Mixin selector named getPlayerSimulationLevel
Lnet/minecraft/server/world/ChunkTicketManager;getPlayerSimulationLevel()I
intermediary method_38633
Lnet/minecraft/class_3204;method_38633()I
official g
Laqc;g()I
-
shouldTickEntities
public boolean shouldTickEntities(long chunkPos) - Mappings:
Namespace Name Mixin selector named shouldTickEntities
Lnet/minecraft/server/world/ChunkTicketManager;shouldTickEntities(J)Z
intermediary method_38630
Lnet/minecraft/class_3204;method_38630(J)Z
official c
Laqc;c(J)Z
-
shouldTickBlocks
public boolean shouldTickBlocks(long chunkPos) - Mappings:
Namespace Name Mixin selector named shouldTickBlocks
Lnet/minecraft/server/world/ChunkTicketManager;shouldTickBlocks(J)Z
intermediary method_38632
Lnet/minecraft/class_3204;method_38632(J)Z
official d
Laqc;d(J)Z
-
getTicket
- Mappings:
Namespace Name Mixin selector named getTicket
Lnet/minecraft/server/world/ChunkTicketManager;getTicket(J)Ljava/lang/String;
intermediary method_21623
Lnet/minecraft/class_3204;method_21623(J)Ljava/lang/String;
official e
Laqc;e(J)Ljava/lang/String;
-
setWatchDistance
protected void setWatchDistance(int viewDistance) - Mappings:
Namespace Name Mixin selector named setWatchDistance
Lnet/minecraft/server/world/ChunkTicketManager;setWatchDistance(I)V
intermediary method_14049
Lnet/minecraft/class_3204;method_14049(I)V
official a
Laqc;a(I)V
-
setSimulationDistance
public void setSimulationDistance(int simulationDistance) - Mappings:
Namespace Name Mixin selector named setSimulationDistance
Lnet/minecraft/server/world/ChunkTicketManager;setSimulationDistance(I)V
intermediary method_38629
Lnet/minecraft/class_3204;method_38629(I)V
official b
Laqc;b(I)V
-
getTickedChunkCount
public int getTickedChunkCount()- Mappings:
Namespace Name Mixin selector named getTickedChunkCount
Lnet/minecraft/server/world/ChunkTicketManager;getTickedChunkCount()I
intermediary method_14052
Lnet/minecraft/class_3204;method_14052()I
official b
Laqc;b()I
-
shouldTick
public boolean shouldTick(long chunkPos) - Mappings:
Namespace Name Mixin selector named shouldTick
Lnet/minecraft/server/world/ChunkTicketManager;shouldTick(J)Z
intermediary method_20800
Lnet/minecraft/class_3204;method_20800(J)Z
official f
Laqc;f(J)Z
-
toDumpString
- Mappings:
Namespace Name Mixin selector named toDumpString
Lnet/minecraft/server/world/ChunkTicketManager;toDumpString()Ljava/lang/String;
intermediary method_21683
Lnet/minecraft/class_3204;method_21683()Ljava/lang/String;
official c
Laqc;c()Ljava/lang/String;
-
dump
- Mappings:
Namespace Name Mixin selector named dump
Lnet/minecraft/server/world/ChunkTicketManager;dump(Ljava/lang/String;)V
intermediary method_34876
Lnet/minecraft/class_3204;method_34876(Ljava/lang/String;)V
official a
Laqc;a(Ljava/lang/String;)V
-
getSimulationDistanceTracker
SimulationDistanceLevelPropagator getSimulationDistanceTracker()- Mappings:
Namespace Name Mixin selector named getSimulationDistanceTracker
Lnet/minecraft/server/world/ChunkTicketManager;getSimulationDistanceTracker()Lnet/minecraft/world/SimulationDistanceLevelPropagator;
intermediary method_38631
Lnet/minecraft/class_3204;method_38631()Lnet/minecraft/class_6609;
official d
Laqc;d()Laqs;
-
removePersistentTickets
public void removePersistentTickets()- Mappings:
Namespace Name Mixin selector named removePersistentTickets
Lnet/minecraft/server/world/ChunkTicketManager;removePersistentTickets()V
intermediary method_39995
Lnet/minecraft/class_3204;method_39995()V
official e
Laqc;e()V
-
shouldDelayShutdown
public boolean shouldDelayShutdown()- Mappings:
Namespace Name Mixin selector named shouldDelayShutdown
Lnet/minecraft/server/world/ChunkTicketManager;shouldDelayShutdown()Z
intermediary method_39996
Lnet/minecraft/class_3204;method_39996()Z
official f
Laqc;f()Z
-