Class ChunkTicketManager

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

public abstract class ChunkTicketManager extends Object
Mappings:
Namespace Name
named net/minecraft/server/world/ChunkTicketManager
intermediary net/minecraft/class_3204
official aqj
  • 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 Laqj;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 Laqj;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 Laqj;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 Laqj;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 Laqj;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 Laqj;f:Laqj$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 Laqj;g:Laqj$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 Laqj;h:Laqz;
    • 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 Laqj;i:Laqj$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 Laqj;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 Laqj;k:Laqd;
    • 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 Laqj;l:Lbpi;
    • 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 Laqj;m:Lbpi;
    • 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 Laqj;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 Laqj;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 Laqj;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 Laqj;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> Laqj;<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 Laqj;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 Laqj;a(Lazf;)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 Laqj;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 Laqj;b(J)Lapy;
    • 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 Laqj;a(JILapy;I)Lapy;
    • update

      public 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.
      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 Laqj;a(Laqa;)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 Laqj;a(JLaqx;)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 Laqj;b(JLaqx;)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 Laqj;a(Laqy;Ldcb;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 Laqj;b(Laqy;Ldcb;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 Laqj;c(Laqy;Ldcb;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 Laqj;d(Laqy;Ldcb;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 Laqj;g(J)Lazf;
    • 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 Laqj;a(Ldcb;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 Laqj;a(Lkf;Laqu;)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 Laqj;b(Lkf;Laqu;)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 Laqj;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 Laqj;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 Laqj;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 Laqj;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 Laqj;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 Laqj;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 Laqj;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 Laqj;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 Laqj;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 Laqj;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 Laqj;d()Laqz;
    • 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 Laqj;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 Laqj;f()Z