Record Class ChunkTicketType

java.lang.Object
java.lang.Record
net.minecraft.server.world.ChunkTicketType
Record Components:
expiryTicks -
persist -
use -

public record ChunkTicketType(long expiryTicks, boolean persist, ChunkTicketType.Use use) extends Record
Mappings:
Namespace Name
named net/minecraft/server/world/ChunkTicketType
intermediary net/minecraft/class_3230
official asi
named expiryTicks
intermediary comp_3474
official j
named persist
intermediary comp_3475
official k
named use
intermediary comp_3476
official l
  • Field Details

    • expiryTicks

      private final long expiryTicks
      The field for the expiryTicks record component.
    • persist

      private final boolean persist
      The field for the persist record component.
    • use

      private final ChunkTicketType.Use use
      The field for the use record component.
    • NO_EXPIRATION

      public static final long NO_EXPIRATION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named NO_EXPIRATION Lnet/minecraft/server/world/ChunkTicketType;NO_EXPIRATION:J
      intermediary field_55598 Lnet/minecraft/class_3230;field_55598:J
      official a Lasi;a:J
    • START

      public static final ChunkTicketType START
      Mappings:
      Namespace Name Mixin selector
      named START Lnet/minecraft/server/world/ChunkTicketType;START:Lnet/minecraft/server/world/ChunkTicketType;
      intermediary field_14030 Lnet/minecraft/class_3230;field_14030:Lnet/minecraft/class_3230;
      official b Lasi;b:Lasi;
    • DRAGON

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

      public static final ChunkTicketType PLAYER_LOADING
      Mappings:
      Namespace Name Mixin selector
      named PLAYER_LOADING Lnet/minecraft/server/world/ChunkTicketType;PLAYER_LOADING:Lnet/minecraft/server/world/ChunkTicketType;
      intermediary field_55599 Lnet/minecraft/class_3230;field_55599:Lnet/minecraft/class_3230;
      official d Lasi;d:Lasi;
    • PLAYER_SIMULATION

      public static final ChunkTicketType PLAYER_SIMULATION
      Mappings:
      Namespace Name Mixin selector
      named PLAYER_SIMULATION Lnet/minecraft/server/world/ChunkTicketType;PLAYER_SIMULATION:Lnet/minecraft/server/world/ChunkTicketType;
      intermediary field_55600 Lnet/minecraft/class_3230;field_55600:Lnet/minecraft/class_3230;
      official e Lasi;e:Lasi;
    • FORCED

      public static final ChunkTicketType FORCED
      Used to force load chunks.
      Mappings:
      Namespace Name Mixin selector
      named FORCED Lnet/minecraft/server/world/ChunkTicketType;FORCED:Lnet/minecraft/server/world/ChunkTicketType;
      intermediary field_14031 Lnet/minecraft/class_3230;field_14031:Lnet/minecraft/class_3230;
      official f Lasi;f:Lasi;
    • PORTAL

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

      public static final ChunkTicketType ENDER_PEARL
      Mappings:
      Namespace Name Mixin selector
      named ENDER_PEARL Lnet/minecraft/server/world/ChunkTicketType;ENDER_PEARL:Lnet/minecraft/server/world/ChunkTicketType;
      intermediary field_54211 Lnet/minecraft/class_3230;field_54211:Lnet/minecraft/class_3230;
      official h Lasi;h:Lasi;
    • UNKNOWN

      public static final ChunkTicketType UNKNOWN
      Represents a type of ticket that has an unknown cause for loading chunks.
      Mappings:
      Namespace Name Mixin selector
      named UNKNOWN Lnet/minecraft/server/world/ChunkTicketType;UNKNOWN:Lnet/minecraft/server/world/ChunkTicketType;
      intermediary field_14032 Lnet/minecraft/class_3230;field_14032:Lnet/minecraft/class_3230;
      official i Lasi;i:Lasi;
  • Constructor Details

    • ChunkTicketType

      public ChunkTicketType(long long2, boolean bool, ChunkTicketType.Use use)
  • Method Details

    • register

      private static ChunkTicketType register(String id, long expiryTicks, boolean persist, ChunkTicketType.Use use)
      Mappings:
      Namespace Name Mixin selector
      named register Lnet/minecraft/server/world/ChunkTicketType;register(Ljava/lang/String;JZLnet/minecraft/server/world/ChunkTicketType$Use;)Lnet/minecraft/server/world/ChunkTicketType;
      intermediary method_66026 Lnet/minecraft/class_3230;method_66026(Ljava/lang/String;JZLnet/minecraft/class_3230$class_10558;)Lnet/minecraft/class_3230;
      official a Lasi;a(Ljava/lang/String;JZLasi$a;)Lasi;
    • isForLoading

      public boolean isForLoading()
      Mappings:
      Namespace Name Mixin selector
      named isForLoading Lnet/minecraft/server/world/ChunkTicketType;isForLoading()Z
      intermediary method_66025 Lnet/minecraft/class_3230;method_66025()Z
      official a Lasi;a()Z
    • isForSimulation

      public boolean isForSimulation()
      Mappings:
      Namespace Name Mixin selector
      named isForSimulation Lnet/minecraft/server/world/ChunkTicketType;isForSimulation()Z
      intermediary method_66027 Lnet/minecraft/class_3230;method_66027()Z
      official b Lasi;b()Z
    • canExpire

      public boolean canExpire()
      Mappings:
      Namespace Name Mixin selector
      named canExpire Lnet/minecraft/server/world/ChunkTicketType;canExpire()Z
      intermediary method_66028 Lnet/minecraft/class_3230;method_66028()Z
      official c Lasi;c()Z
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • expiryTicks

      public long expiryTicks()
      Returns the value of the expiryTicks record component.
      Returns:
      the value of the expiryTicks record component
    • persist

      public boolean persist()
      Returns the value of the persist record component.
      Returns:
      the value of the persist record component
    • use

      public ChunkTicketType.Use use()
      Returns the value of the use record component.
      Returns:
      the value of the use record component