Package net.minecraft.server.world
Class ChunkTicketManager
java.lang.Object
net.minecraft.server.world.ChunkTicketManager
- Direct Known Subclasses:
ThreadedAnvilChunkStorage.TicketManager
- Mappings:
Namespace Name official abk
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) Set<ChunkHolder>
(package private) LongSet
private static int
private static int
(package private) ChunkTaskPrioritySystem
(package private) static Logger
(package private) Executor
(package private) static int
(package private) Long2ObjectMap<ObjectSet<ServerPlayerEntity>>
(package private) MessageListener<ChunkTaskPrioritySystem.Task<Runnable>>
(package private) MessageListener<ChunkTaskPrioritySystem.UnblockingMessage>
(package private) 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)
protected abstract @Nullable ChunkHolder
getChunkHolder(long pos)
private static int
getLevel(SortedArraySet<ChunkTicket<?>> sortedArraySet)
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)
boolean
method_20800(long long2)
private void
method_34876(String string)
protected void
purge()
(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)
protected void
setWatchDistance(int viewDistance)
boolean
tick(ThreadedAnvilChunkStorage threadedAnvilChunkStorage)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Labk;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;
-
field_29764
private static final int field_29764- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official b
Labk;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
Labk;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:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official d
Labk;d:I
intermediary field_29765
Lnet/minecraft/class_3204;field_29765:I
named field_29765
Lnet/minecraft/server/world/ChunkTicketManager;field_29765:I
-
playersByChunkPos
- Mappings:
Namespace Name Mixin selector official e
Labk;e: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 f
Labk;f: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 g
Labk;g:Labk$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 h
Labk;h:Labk$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 i
Labk;i:Labk$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 j
Labk;j: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 k
Labk;k:Labg;
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 l
Labk;l:Laqw;
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 m
Labk;m:Laqw;
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 n
Labk;n: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 o
Labk;o: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 p
Labk;p: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>
Labk;<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
Labk;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
Labk;a(Lahf;)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
Labk;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
Labk;b(J)Labd;
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
Labk;a(JILabd;I)Labd;
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
Labk;a(Labe;)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
Labk;a(JLabv;)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
Labk;b(JLabv;)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
Labk;a(Labw;Lbvu;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
Labk;b(Labw;Lbvu;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
Labk;c(Labw;Lbvu;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
Labk;d(Labw;Lbvu;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
Labk;e(J)Lahf;
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
Labk;a(Lbvu;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
Labk;a(Lgz;Labs;)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
Labk;b(Lgz;Labs;)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
Labk;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
Labk;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
Labk;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
Labk;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
Labk;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;
-
method_34876
- Mappings:
Namespace Name Mixin selector official a
Labk;a(Ljava/lang/String;)V
intermediary method_34876
Lnet/minecraft/class_3204;method_34876(Ljava/lang/String;)V
named method_34876
Lnet/minecraft/server/world/ChunkTicketManager;method_34876(Ljava/lang/String;)V
-