Class ChunkTicketManager

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

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

    • LOGGER

      static final Logger 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

      final Long2ObjectMap<ObjectSet<ServerPlayerEntity>> 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

      final Long2ObjectOpenHashMap<SortedArraySet<ChunkTicket<?>>> 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

      private final ChunkTicketManager.TicketDistanceLevelPropagator 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

      private final ChunkTicketManager.DistanceFromNearestPlayerTracker 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

      private final ChunkTicketManager.NearbyChunkTicketUpdater 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

      final Set<ChunkHolder> 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

      final ChunkTaskPrioritySystem 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

      final MessageListener<ChunkTaskPrioritySystem.Task<Runnable>> 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

      final MessageListener<ChunkTaskPrioritySystem.UnblockingMessage> 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

      final LongSet 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

      final Executor 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

      protected ChunkTicketManager(Executor workerExecutor, Executor mainThreadExecutor)
      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

      private static int getLevel(SortedArraySet<ChunkTicket<?>> sortedArraySet)
      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

      @Nullable protected abstract @Nullable ChunkHolder getChunkHolder(long pos)
      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

      public boolean tick(ThreadedAnvilChunkStorage threadedAnvilChunkStorage)
      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

      void addTicket(long position, ChunkTicket<?> ticket)
      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

      void removeTicket(long pos, ChunkTicket<?> ticket)
      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

      public <T> void addTicketWithLevel(ChunkTicketType<T> type, ChunkPos pos, int level, T argument)
      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

      public <T> void addTicket(ChunkTicketType<T> type, ChunkPos pos, int radius, T argument)
      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

      public <T> void removeTicket(ChunkTicketType<T> type, ChunkPos pos, int radius, T argument)
      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

      private SortedArraySet<ChunkTicket<?>> getTicketSet(long position)
      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

      protected void setChunkForced(ChunkPos pos, boolean forced)
      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

      public void handleChunkEnter(ChunkSectionPos pos, ServerPlayerEntity player)
      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

      public void handleChunkLeave(ChunkSectionPos pos, ServerPlayerEntity player)
      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

      protected String getTicket(long pos)
      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

      public String 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

      private void method_34876(String string)
      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