Class ChunkTicketType<T>

java.lang.Object
net.minecraft.server.world.ChunkTicketType<T>

public class ChunkTicketType<T> extends Object
Mappings:
Namespace Name
official agl
intermediary net/minecraft/class_3230
named net/minecraft/server/world/ChunkTicketType
  • Field Details

    • START

      public static final ChunkTicketType<Unit> START
      Mappings:
      Namespace Name Mixin selector
      official a Lagl;a:Lagl;
      intermediary field_14030 Lnet/minecraft/class_3230;field_14030:Lnet/minecraft/class_3230;
      named START Lnet/minecraft/server/world/ChunkTicketType;START:Lnet/minecraft/server/world/ChunkTicketType;
    • DRAGON

      public static final ChunkTicketType<Unit> DRAGON
      Used by the ender dragon to load the central end island during the boss battle.
      Mappings:
      Namespace Name Mixin selector
      official b Lagl;b:Lagl;
      intermediary field_17264 Lnet/minecraft/class_3230;field_17264:Lnet/minecraft/class_3230;
      named DRAGON Lnet/minecraft/server/world/ChunkTicketType;DRAGON:Lnet/minecraft/server/world/ChunkTicketType;
    • PLAYER

      public static final ChunkTicketType<ChunkPos> PLAYER
      Mappings:
      Namespace Name Mixin selector
      official c Lagl;c:Lagl;
      intermediary field_14033 Lnet/minecraft/class_3230;field_14033:Lnet/minecraft/class_3230;
      named PLAYER Lnet/minecraft/server/world/ChunkTicketType;PLAYER:Lnet/minecraft/server/world/ChunkTicketType;
    • FORCED

      public static final ChunkTicketType<ChunkPos> FORCED
      Used to force load chunks.
      Mappings:
      Namespace Name Mixin selector
      official d Lagl;d:Lagl;
      intermediary field_14031 Lnet/minecraft/class_3230;field_14031:Lnet/minecraft/class_3230;
      named FORCED Lnet/minecraft/server/world/ChunkTicketType;FORCED:Lnet/minecraft/server/world/ChunkTicketType;
    • LIGHT

      public static final ChunkTicketType<ChunkPos> LIGHT
      Mappings:
      Namespace Name Mixin selector
      official e Lagl;e:Lagl;
      intermediary field_19270 Lnet/minecraft/class_3230;field_19270:Lnet/minecraft/class_3230;
      named LIGHT Lnet/minecraft/server/world/ChunkTicketType;LIGHT:Lnet/minecraft/server/world/ChunkTicketType;
    • PORTAL

      public static final ChunkTicketType<BlockPos> PORTAL
      Used by a nether portal to load chunks in the other dimension.
      Mappings:
      Namespace Name Mixin selector
      official f Lagl;f:Lagl;
      intermediary field_19280 Lnet/minecraft/class_3230;field_19280:Lnet/minecraft/class_3230;
      named PORTAL Lnet/minecraft/server/world/ChunkTicketType;PORTAL:Lnet/minecraft/server/world/ChunkTicketType;
    • POST_TELEPORT

      public static final ChunkTicketType<Integer> POST_TELEPORT
      Used to load the chunks at the destination of teleportation.
      Mappings:
      Namespace Name Mixin selector
      official g Lagl;g:Lagl;
      intermediary field_19347 Lnet/minecraft/class_3230;field_19347:Lnet/minecraft/class_3230;
      named POST_TELEPORT Lnet/minecraft/server/world/ChunkTicketType;POST_TELEPORT:Lnet/minecraft/server/world/ChunkTicketType;
    • UNKNOWN

      public static final ChunkTicketType<ChunkPos> UNKNOWN
      Represents a type of ticket that has an unknown cause for loading chunks.
      Mappings:
      Namespace Name Mixin selector
      official h Lagl;h:Lagl;
      intermediary field_14032 Lnet/minecraft/class_3230;field_14032:Lnet/minecraft/class_3230;
      named UNKNOWN Lnet/minecraft/server/world/ChunkTicketType;UNKNOWN:Lnet/minecraft/server/world/ChunkTicketType;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official i Lagl;i:Ljava/lang/String;
      intermediary field_14034 Lnet/minecraft/class_3230;field_14034:Ljava/lang/String;
      named name Lnet/minecraft/server/world/ChunkTicketType;name:Ljava/lang/String;
    • argumentComparator

      private final Comparator<T> argumentComparator
      Mappings:
      Namespace Name Mixin selector
      official j Lagl;j:Ljava/util/Comparator;
      intermediary field_14029 Lnet/minecraft/class_3230;field_14029:Ljava/util/Comparator;
      named argumentComparator Lnet/minecraft/server/world/ChunkTicketType;argumentComparator:Ljava/util/Comparator;
    • expiryTicks

      private final long expiryTicks
      Mappings:
      Namespace Name Mixin selector
      official k Lagl;k:J
      intermediary field_19348 Lnet/minecraft/class_3230;field_19348:J
      named expiryTicks Lnet/minecraft/server/world/ChunkTicketType;expiryTicks:J
  • Constructor Details

    • ChunkTicketType

      protected ChunkTicketType(String name, Comparator<T> argumentComparator, long expiryTicks)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lagl;<init>(Ljava/lang/String;Ljava/util/Comparator;J)V
      intermediary <init> Lnet/minecraft/class_3230;<init>(Ljava/lang/String;Ljava/util/Comparator;J)V
      named <init> Lnet/minecraft/server/world/ChunkTicketType;<init>(Ljava/lang/String;Ljava/util/Comparator;J)V
  • Method Details

    • create

      public static <T> ChunkTicketType<T> create(String name, Comparator<T> argumentComparator)
      Creates a new ticket type that does not expire.
      Mappings:
      Namespace Name Mixin selector
      official a Lagl;a(Ljava/lang/String;Ljava/util/Comparator;)Lagl;
      intermediary method_14291 Lnet/minecraft/class_3230;method_14291(Ljava/lang/String;Ljava/util/Comparator;)Lnet/minecraft/class_3230;
      named create Lnet/minecraft/server/world/ChunkTicketType;create(Ljava/lang/String;Ljava/util/Comparator;)Lnet/minecraft/server/world/ChunkTicketType;
    • create

      public static <T> ChunkTicketType<T> create(String name, Comparator<T> argumentComparator, int expiryTicks)
      Create a new ticket type that expires after an amount of ticks.
      Parameters:
      expiryTicks - the expiry time in ticks, does not expire if 0
      Mappings:
      Namespace Name Mixin selector
      official a Lagl;a(Ljava/lang/String;Ljava/util/Comparator;I)Lagl;
      intermediary method_20628 Lnet/minecraft/class_3230;method_20628(Ljava/lang/String;Ljava/util/Comparator;I)Lnet/minecraft/class_3230;
      named create Lnet/minecraft/server/world/ChunkTicketType;create(Ljava/lang/String;Ljava/util/Comparator;I)Lnet/minecraft/server/world/ChunkTicketType;
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getArgumentComparator

      public Comparator<T> getArgumentComparator()
      Mappings:
      Namespace Name Mixin selector
      official a Lagl;a()Ljava/util/Comparator;
      intermediary method_14292 Lnet/minecraft/class_3230;method_14292()Ljava/util/Comparator;
      named getArgumentComparator Lnet/minecraft/server/world/ChunkTicketType;getArgumentComparator()Ljava/util/Comparator;
    • getExpiryTicks

      public long getExpiryTicks()
      Mappings:
      Namespace Name Mixin selector
      official b Lagl;b()J
      intermediary method_20629 Lnet/minecraft/class_3230;method_20629()J
      named getExpiryTicks Lnet/minecraft/server/world/ChunkTicketType;getExpiryTicks()J