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 arv
  • 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 Larv;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 Larv;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 Larv;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 Larv;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 Larv;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 Larv;f:Larv$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 Larv;g:Larv$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 Larv;h:Laso;
    • 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 Larv;i:Larv$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 Larv;j:Ljava/util/Set;
    • scheduler

      final ThrottledChunkTaskScheduler scheduler
      Mappings:
      Namespace Name Mixin selector
      named scheduler Lnet/minecraft/server/world/ChunkTicketManager;scheduler:Lnet/minecraft/server/world/ThrottledChunkTaskScheduler;
      intermediary field_54044 Lnet/minecraft/class_3204;field_54044:Lnet/minecraft/class_10173;
      official k Larv;k:Lasl;
    • 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 l Larv;l: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 m Larv;m: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 n Larv;n: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 o Larv;o: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> Larv;<init>(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)V
  • Method Details

    • purgeExpiredTickets

      protected void purgeExpiredTickets()
      Mappings:
      Namespace Name Mixin selector
      named purgeExpiredTickets Lnet/minecraft/server/world/ChunkTicketManager;purgeExpiredTickets()V
      intermediary method_14045 Lnet/minecraft/class_3204;method_14045()V
      official a Larv;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 Larv;a(Lbaw;)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 Larv;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 Larv;b(J)Lark;
    • 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 Larv;a(JILark;I)Lark;
    • 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 Larv;a(Larm;)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 Larv;a(JLasm;)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 Larv;b(JLasm;)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 Larv;a(Lasn;Ldgn;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 Larv;b(Lasn;Ldgn;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 Larv;c(Lasn;Ldgn;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 Larv;d(Lasn;Ldgn;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 Larv;g(J)Lbaw;
    • 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 Larv;a(Ldgn;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 Larv;a(Lkj;Lasi;)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 Larv;b(Lkj;Lasi;)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 i Larv;i()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 Larv;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 Larv;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 Larv;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 Larv;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 Larv;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 Larv;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 Larv;f(J)Z
    • iterateChunkPosToTick

      public LongIterator iterateChunkPosToTick()
      Mappings:
      Namespace Name Mixin selector
      named iterateChunkPosToTick Lnet/minecraft/server/world/ChunkTicketManager;iterateChunkPosToTick()Lit/unimi/dsi/fastutil/longs/LongIterator;
      intermediary method_61262 Lnet/minecraft/class_3204;method_61262()Lit/unimi/dsi/fastutil/longs/LongIterator;
      official c Larv;c()Lit/unimi/dsi/fastutil/longs/LongIterator;
    • 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 d Larv;d()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 Larv;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 e Larv;e()Laso;
    • getChunks

      public LongSet getChunks()
      Mappings:
      Namespace Name Mixin selector
      named getChunks Lnet/minecraft/server/world/ChunkTicketManager;getChunks()Lit/unimi/dsi/fastutil/longs/LongSet;
      intermediary method_61263 Lnet/minecraft/class_3204;method_61263()Lit/unimi/dsi/fastutil/longs/LongSet;
      official f Larv;f()Lit/unimi/dsi/fastutil/longs/LongSet;
    • 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 g Larv;g()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 h Larv;h()Z