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 aqk
  • 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 Laqk;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 Laqk;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 Laqk;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 Laqk;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 Laqk;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 Laqk;f:Laqk$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 Laqk;g:Laqk$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 Laqk;h:Lara;
    • 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 Laqk;i:Laqk$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 Laqk;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 Laqk;k:Laqe;
    • 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 Laqk;l:Lbpj;
    • 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 Laqk;m:Lbpj;
    • 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 Laqk;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 Laqk;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 Laqk;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 Laqk;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> Laqk;<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 Laqk;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 Laqk;a(Lazg;)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 Laqk;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 Laqk;b(J)Lapz;
    • 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 Laqk;a(JILapz;I)Lapz;
    • 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 Laqk;a(Laqb;)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 Laqk;a(JLaqy;)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 Laqk;b(JLaqy;)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 Laqk;a(Laqz;Ldcd;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 Laqk;b(Laqz;Ldcd;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 Laqk;c(Laqz;Ldcd;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 Laqk;d(Laqz;Ldcd;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 Laqk;g(J)Lazg;
    • 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 Laqk;a(Ldcd;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 Laqk;a(Lkf;Laqv;)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 Laqk;b(Lkf;Laqv;)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 Laqk;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 Laqk;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 Laqk;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 Laqk;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 Laqk;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 Laqk;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 Laqk;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 Laqk;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 Laqk;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 Laqk;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 Laqk;d()Lara;
    • 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 Laqk;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 Laqk;f()Z