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 afh
intermediary net/minecraft/class_3204
named net/minecraft/server/world/ChunkTicketManager
  • Field Details

    • LOGGER

      static final org.slf4j.Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a:Lorg/slf4j/Logger;
      intermediary field_16211 Lnet/minecraft/class_3204;field_16211:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/server/world/ChunkTicketManager;LOGGER:Lorg/slf4j/Logger;
    • field_29764

      private static final int field_29764
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lafh;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 Lafh;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:
      Mappings:
      Namespace Name Mixin selector
      official d Lafh;d:I
      intermediary field_29765 Lnet/minecraft/class_3204;field_29765:I
      named field_29765 Lnet/minecraft/server/world/ChunkTicketManager;field_29765:I
    • field_34884

      private static final int field_34884
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lafh;e:I
      intermediary field_34884 Lnet/minecraft/class_3204;field_34884:I
      named field_34884 Lnet/minecraft/server/world/ChunkTicketManager;field_34884:I
    • field_34885

      private static final int field_34885
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lafh;f:I
      intermediary field_34885 Lnet/minecraft/class_3204;field_34885:I
      named field_34885 Lnet/minecraft/server/world/ChunkTicketManager;field_34885:I
    • playersByChunkPos

      final Long2ObjectMap<ObjectSet<ServerPlayerEntity>> playersByChunkPos
      Mappings:
      Namespace Name Mixin selector
      official g Lafh;g: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 h Lafh;h: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 i Lafh;i:Lafh$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 j Lafh;j:Lafh$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;
    • simulationDistanceTracker

      private final SimulationDistanceLevelPropagator simulationDistanceTracker
      Mappings:
      Namespace Name Mixin selector
      official k Lafh;k:Lafu;
      intermediary field_34886 Lnet/minecraft/class_3204;field_34886:Lnet/minecraft/class_6609;
      named simulationDistanceTracker Lnet/minecraft/server/world/ChunkTicketManager;simulationDistanceTracker:Lnet/minecraft/world/SimulationDistanceLevelPropagator;
    • nearbyChunkTicketUpdater

      private final ChunkTicketManager.NearbyChunkTicketUpdater nearbyChunkTicketUpdater
      Mappings:
      Namespace Name Mixin selector
      official l Lafh;l:Lafh$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 m Lafh;m: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 n Lafh;n:Lafd;
      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 o Lafh;o:Laye;
      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 p Lafh;p:Laye;
      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 q Lafh;q: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 r Lafh;r: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 s Lafh;s:J
      intermediary field_13894 Lnet/minecraft/class_3204;field_13894:J
      named age Lnet/minecraft/server/world/ChunkTicketManager;age:J
    • simulationDistance

      private int simulationDistance
      Mappings:
      Namespace Name Mixin selector
      official t Lafh;t:I
      intermediary field_34887 Lnet/minecraft/class_3204;field_34887:I
      named simulationDistance Lnet/minecraft/server/world/ChunkTicketManager;simulationDistance:I
  • Constructor Details

    • ChunkTicketManager

      protected ChunkTicketManager(Executor workerExecutor, Executor mainThreadExecutor)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lafh;<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 Lafh;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<?>> tickets)
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Lama;)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 Lafh;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 Lafh;b(J)Lafa;
      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 Lafh;a(JILafa;I)Lafa;
      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 chunkStorage)
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Lafb;)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 Lafh;a(JLafs;)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 Lafh;b(JLafs;)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 Lafh;a(Laft;Lcfh;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 Lafh;b(Laft;Lcfh;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 Lafh;c(Laft;Lcfh;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 Lafh;d(Laft;Lcfh;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 g Lafh;g(J)Lama;
      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 Lafh;a(Lcfh;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 Lafh;a(Lhq;Lafp;)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 Lafh;b(Lhq;Lafp;)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
    • getPlayerSimulationLevel

      private int getPlayerSimulationLevel()
      Mappings:
      Namespace Name Mixin selector
      official g Lafh;g()I
      intermediary method_38633 Lnet/minecraft/class_3204;method_38633()I
      named getPlayerSimulationLevel Lnet/minecraft/server/world/ChunkTicketManager;getPlayerSimulationLevel()I
    • shouldTickEntities

      public boolean shouldTickEntities(long chunkPos)
      Mappings:
      Namespace Name Mixin selector
      official c Lafh;c(J)Z
      intermediary method_38630 Lnet/minecraft/class_3204;method_38630(J)Z
      named shouldTickEntities Lnet/minecraft/server/world/ChunkTicketManager;shouldTickEntities(J)Z
    • shouldTickBlocks

      public boolean shouldTickBlocks(long chunkPos)
      Mappings:
      Namespace Name Mixin selector
      official d Lafh;d(J)Z
      intermediary method_38632 Lnet/minecraft/class_3204;method_38632(J)Z
      named shouldTickBlocks Lnet/minecraft/server/world/ChunkTicketManager;shouldTickBlocks(J)Z
    • getTicket

      protected String getTicket(long pos)
      Mappings:
      Namespace Name Mixin selector
      official e Lafh;e(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 Lafh;a(I)V
      intermediary method_14049 Lnet/minecraft/class_3204;method_14049(I)V
      named setWatchDistance Lnet/minecraft/server/world/ChunkTicketManager;setWatchDistance(I)V
    • setSimulationDistance

      public void setSimulationDistance(int simulationDistance)
      Mappings:
      Namespace Name Mixin selector
      official b Lafh;b(I)V
      intermediary method_38629 Lnet/minecraft/class_3204;method_38629(I)V
      named setSimulationDistance Lnet/minecraft/server/world/ChunkTicketManager;setSimulationDistance(I)V
    • getTickedChunkCount

      public int getTickedChunkCount()
      Mappings:
      Namespace Name Mixin selector
      official b Lafh;b()I
      intermediary method_14052 Lnet/minecraft/class_3204;method_14052()I
      named getTickedChunkCount Lnet/minecraft/server/world/ChunkTicketManager;getTickedChunkCount()I
    • shouldTick

      public boolean shouldTick(long chunkPos)
      Mappings:
      Namespace Name Mixin selector
      official f Lafh;f(J)Z
      intermediary method_20800 Lnet/minecraft/class_3204;method_20800(J)Z
      named shouldTick Lnet/minecraft/server/world/ChunkTicketManager;shouldTick(J)Z
    • toDumpString

      public String toDumpString()
      Mappings:
      Namespace Name Mixin selector
      official c Lafh;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;
    • dump

      private void dump(String path)
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ljava/lang/String;)V
      intermediary method_34876 Lnet/minecraft/class_3204;method_34876(Ljava/lang/String;)V
      named dump Lnet/minecraft/server/world/ChunkTicketManager;dump(Ljava/lang/String;)V
    • getSimulationDistanceTracker

      SimulationDistanceLevelPropagator getSimulationDistanceTracker()
      Mappings:
      Namespace Name Mixin selector
      official d Lafh;d()Lafu;
      intermediary method_38631 Lnet/minecraft/class_3204;method_38631()Lnet/minecraft/class_6609;
      named getSimulationDistanceTracker Lnet/minecraft/server/world/ChunkTicketManager;getSimulationDistanceTracker()Lnet/minecraft/world/SimulationDistanceLevelPropagator;
    • removePersistentTickets

      public void removePersistentTickets()
      Mappings:
      Namespace Name Mixin selector
      official e Lafh;e()V
      intermediary method_39995 Lnet/minecraft/class_3204;method_39995()V
      named removePersistentTickets Lnet/minecraft/server/world/ChunkTicketManager;removePersistentTickets()V
    • shouldDelayShutdown

      public boolean shouldDelayShutdown()
      Mappings:
      Namespace Name Mixin selector
      official f Lafh;f()Z
      intermediary method_39996 Lnet/minecraft/class_3204;method_39996()Z
      named shouldDelayShutdown Lnet/minecraft/server/world/ChunkTicketManager;shouldDelayShutdown()Z