Class ChunkTicketManager

java.lang.Object
net.minecraft.server.world.ChunkTicketManager
Direct Known Subclasses:
ThreadedAnvilChunkStorage.TicketManager

public abstract class ChunkTicketManager extends Object
Mappings:
Namespace Name
named net/minecraft/server/world/ChunkTicketManager
intermediary net/minecraft/class_3204
official aqx
  • Field Details

    • LOGGER

      static final Logger 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 Laqx;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 Laqx;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 Laqx;c:I
    • playersByChunkPos

      final Long2ObjectMap<ObjectSet<ServerPlayerEntity>> 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 Laqx;d:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
    • ticketsByPosition

      final Long2ObjectOpenHashMap<SortedArraySet<ChunkTicket<?>>> 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 Laqx;e:Lit/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap;
    • distanceFromTicketTracker

      private final ChunkTicketManager.TicketDistanceLevelPropagator 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 Laqx;f:Laqx$a;
    • distanceFromNearestPlayerTracker

      private final ChunkTicketManager.DistanceFromNearestPlayerTracker 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 Laqx;g:Laqx$b;
    • simulationDistanceTracker

      private final SimulationDistanceLevelPropagator 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 Laqx;h:Larl;
    • nearbyChunkTicketUpdater

      private final ChunkTicketManager.NearbyChunkTicketUpdater 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 Laqx;i:Laqx$c;
    • chunkHoldersWithPendingUpdates

      final Set<ChunkHolder> 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 Laqx;j:Ljava/util/Set;
    • levelUpdateListener

      final ChunkTaskPrioritySystem 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 Laqx;k:Laqr;
    • playerTicketThrottler

      final MessageListener<ChunkTaskPrioritySystem.Task<Runnable>> 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 Laqx;l:Lbpn;
    • playerTicketThrottlerUnblocker

      final MessageListener<ChunkTaskPrioritySystem.UnblockingMessage> 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 Laqx;m:Lbpn;
    • freshPlayerTicketPositions

      final LongSet 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 Laqx;n:Lit/unimi/dsi/fastutil/longs/LongSet;
    • mainThreadExecutor

      final Executor 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 Laqx;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 Laqx;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 Laqx;q:I
  • Constructor Details

    • ChunkTicketManager

      protected ChunkTicketManager(Executor workerExecutor, Executor mainThreadExecutor)
      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> Laqx;<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 Laqx;a()V
    • getLevel

      private static int getLevel(SortedArraySet<ChunkTicket<?>> tickets)
      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 Laqx;a(Lazr;)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 Laqx;a(J)Z
    • getChunkHolder

      @Nullable protected abstract @Nullable ChunkHolder getChunkHolder(long pos)
      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 Laqx;b(J)Laqm;
    • 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 Laqx;a(JILaqm;I)Laqm;
    • update

      public boolean update(ThreadedAnvilChunkStorage chunkStorage)
      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/ThreadedAnvilChunkStorage;)Z
      intermediary method_15892 Lnet/minecraft/class_3204;method_15892(Lnet/minecraft/class_3898;)Z
      official a Laqx;a(Laqo;)Z
    • addTicket

      void addTicket(long position, ChunkTicket<?> ticket)
      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 Laqx;a(JLarj;)V
    • removeTicket

      void removeTicket(long pos, ChunkTicket<?> ticket)
      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 Laqx;b(JLarj;)V
    • addTicketWithLevel

      public <T> void addTicketWithLevel(ChunkTicketType<T> type, ChunkPos pos, int level, T argument)
      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 Laqx;a(Lark;Ldbg;ILjava/lang/Object;)V
    • removeTicketWithLevel

      public <T> void removeTicketWithLevel(ChunkTicketType<T> type, ChunkPos pos, int level, T argument)
      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 Laqx;b(Lark;Ldbg;ILjava/lang/Object;)V
    • addTicket

      public <T> void addTicket(ChunkTicketType<T> type, ChunkPos pos, int radius, T argument)
      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 Laqx;c(Lark;Ldbg;ILjava/lang/Object;)V
    • removeTicket

      public <T> void removeTicket(ChunkTicketType<T> type, ChunkPos pos, int radius, T argument)
      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 Laqx;d(Lark;Ldbg;ILjava/lang/Object;)V
    • getTicketSet

      private SortedArraySet<ChunkTicket<?>> getTicketSet(long position)
      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 Laqx;g(J)Lazr;
    • setChunkForced

      protected void setChunkForced(ChunkPos pos, boolean forced)
      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 Laqx;a(Ldbg;Z)V
    • handleChunkEnter

      public void handleChunkEnter(ChunkSectionPos pos, ServerPlayerEntity player)
      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 Laqx;a(Lkb;Larg;)V
    • handleChunkLeave

      public void handleChunkLeave(ChunkSectionPos pos, ServerPlayerEntity player)
      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 Laqx;b(Lkb;Larg;)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 Laqx;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 Laqx;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 Laqx;d(J)Z
    • getTicket

      protected String getTicket(long pos)
      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 Laqx;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 Laqx;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 Laqx;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 Laqx;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 Laqx;f(J)Z
    • toDumpString

      public String 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 Laqx;c()Ljava/lang/String;
    • dump

      private void dump(String path)
      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 Laqx;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 Laqx;d()Larl;
    • 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 Laqx;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 Laqx;f()Z