Package net.minecraft.server.world
Class ChunkTicketManager
java.lang.Object
net.minecraft.server.world.ChunkTicketManager
- Direct Known Subclasses:
ThreadedAnvilChunkStorage.TicketManager
public abstract class ChunkTicketManager extends Object
- Mappings:
Namespace Name official aao
intermediary net/minecraft/class_3204
named net/minecraft/server/world/ChunkTicketManager
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
ChunkTicketManager.DistanceFromNearestPlayerTracker
(package private) class
ChunkTicketManager.NearbyChunkTicketUpdater
(package private) class
ChunkTicketManager.TicketDistanceLevelPropagator
-
Field Summary
Fields Modifier and Type Field Description private long
age
private Set<ChunkHolder>
chunkHolders
private LongSet
chunkPositions
private ChunkTicketManager.DistanceFromNearestPlayerTracker
distanceFromNearestPlayerTracker
private ChunkTicketManager.TicketDistanceLevelPropagator
distanceFromTicketTracker
private ChunkTaskPrioritySystem
levelUpdateListener
private static Logger
LOGGER
private Executor
mainThreadExecutor
private static int
NEARBY_PLAYER_TICKET_LEVEL
private ChunkTicketManager.NearbyChunkTicketUpdater
nearbyChunkTicketUpdater
private Long2ObjectMap<ObjectSet<ServerPlayerEntity>>
playersByChunkPos
private MessageListener<ChunkTaskPrioritySystem.Task<Runnable>>
playerTicketThrottler
private MessageListener<ChunkTaskPrioritySystem.UnblockingMessage>
playerTicketThrottlerUnblocker
private Long2ObjectOpenHashMap<SortedArraySet<ChunkTicket<?>>>
ticketsByPosition
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChunkTicketManager(Executor workerExecutor, Executor mainThreadExecutor)
-
Method Summary
Modifier and Type Method Description 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)
protected abstract ChunkHolder
getChunkHolder(long pos)
private static int
getLevel(SortedArraySet<ChunkTicket<?>> sortedArraySet)
int
getSpawningChunkCount()
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)
boolean
method_20800(long long2)
protected void
purge()
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 ChunkHolder
setLevel(long pos, int level, ChunkHolder holder, int int2)
protected void
setWatchDistance(int viewDistance)
boolean
tick(ThreadedAnvilChunkStorage threadedAnvilChunkStorage)
String
toDumpString()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Laao;a:Lorg/apache/logging/log4j/Logger;
intermediary field_16211
Lnet/minecraft/class_3204;field_16211:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/server/world/ChunkTicketManager;LOGGER:Lorg/apache/logging/log4j/Logger;
-
NEARBY_PLAYER_TICKET_LEVEL
private static final int NEARBY_PLAYER_TICKET_LEVEL- Mappings:
Namespace Name Mixin selector official b
Laao;b: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
-
playersByChunkPos
- Mappings:
Namespace Name Mixin selector official c
Laao;c: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 d
Laao;d: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 e
Laao;e:Laao$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 f
Laao;f:Laao$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;
-
nearbyChunkTicketUpdater
- Mappings:
Namespace Name Mixin selector official g
Laao;g:Laao$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 h
Laao;h: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 i
Laao;i:Laak;
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 j
Laao;j:Laoz;
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
private final MessageListener<ChunkTaskPrioritySystem.UnblockingMessage> playerTicketThrottlerUnblocker- Mappings:
Namespace Name Mixin selector official k
Laao;k:Laoz;
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 l
Laao;l: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 m
Laao;m: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 n
Laao;n:J
intermediary field_13894
Lnet/minecraft/class_3204;field_13894:J
named age
Lnet/minecraft/server/world/ChunkTicketManager;age:J
-
-
Constructor Details
-
ChunkTicketManager
- Mappings:
Namespace Name Mixin selector official <init>
Laao;<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
Laao;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
Laao;a(Lagg;)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
Laao;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
Laao;b(J)Laah;
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 ChunkHolder setLevel(long pos, int level, @Nullable ChunkHolder holder, int int2)- Mappings:
Namespace Name Mixin selector official a
Laao;a(JILaah;I)Laah;
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
Laao;a(Laai;)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
Laao;a(JLaaz;)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
Laao;b(JLaaz;)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
Laao;a(Laba;Lbta;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
public <T> void removeTicketWithLevel(ChunkTicketType<T> type, ChunkPos pos, int level, T argument)- Mappings:
Namespace Name Mixin selector official b
Laao;b(Laba;Lbta;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
Laao;c(Laba;Lbta;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
Laao;d(Laba;Lbta;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 e
Laao;e(J)Lagg;
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
Laao;a(Lbta;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
Laao;a(Lgq;Laaw;)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
Laao;b(Lgq;Laaw;)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
-
getTicket
- Mappings:
Namespace Name Mixin selector official c
Laao;c(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
Laao;a(I)V
intermediary method_14049
Lnet/minecraft/class_3204;method_14049(I)V
named setWatchDistance
Lnet/minecraft/server/world/ChunkTicketManager;setWatchDistance(I)V
-
getSpawningChunkCount
public int getSpawningChunkCount()- Mappings:
Namespace Name Mixin selector official b
Laao;b()I
intermediary method_14052
Lnet/minecraft/class_3204;method_14052()I
named getSpawningChunkCount
Lnet/minecraft/server/world/ChunkTicketManager;getSpawningChunkCount()I
-
method_20800
public boolean method_20800(long long2)- Mappings:
Namespace Name Mixin selector official d
Laao;d(J)Z
intermediary method_20800
Lnet/minecraft/class_3204;method_20800(J)Z
named method_20800
Lnet/minecraft/server/world/ChunkTicketManager;method_20800(J)Z
-
toDumpString
- Mappings:
Namespace Name Mixin selector official c
Laao;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;
-