Record Class ChunkTicketType

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

public record ChunkTicketType(long expiryTicks, @net.minecraft.server.world.ChunkTicketType.Flags int flags) extends Record
Mappings:
Namespace Name
named net/minecraft/server/world/ChunkTicketType
intermediary net/minecraft/class_3230
official axt
named expiryTicks
intermediary comp_3474
official p
named flags
intermediary comp_4411
official q
  • Field Details

    • expiryTicks

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

      private final @net.minecraft.server.world.ChunkTicketType.Flags int flags
      The field for the flags 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 Laxt;a:J
    • SERIALIZE

      public static final int SERIALIZE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SERIALIZE Lnet/minecraft/server/world/ChunkTicketType;SERIALIZE:I
      intermediary field_61096 Lnet/minecraft/class_3230;field_61096:I
      official b Laxt;b:I
    • FOR_LOADING

      public static final int FOR_LOADING
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named FOR_LOADING Lnet/minecraft/server/world/ChunkTicketType;FOR_LOADING:I
      intermediary field_61097 Lnet/minecraft/class_3230;field_61097:I
      official c Laxt;c:I
    • FOR_SIMULATION

      public static final int FOR_SIMULATION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named FOR_SIMULATION Lnet/minecraft/server/world/ChunkTicketType;FOR_SIMULATION:I
      intermediary field_61098 Lnet/minecraft/class_3230;field_61098:I
      official d Laxt;d:I
    • RESETS_IDLE_TIMEOUT

      public static final int RESETS_IDLE_TIMEOUT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named RESETS_IDLE_TIMEOUT Lnet/minecraft/server/world/ChunkTicketType;RESETS_IDLE_TIMEOUT:I
      intermediary field_61099 Lnet/minecraft/class_3230;field_61099:I
      official e Laxt;e:I
    • CAN_EXPIRE_BEFORE_LOAD

      public static final int CAN_EXPIRE_BEFORE_LOAD
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CAN_EXPIRE_BEFORE_LOAD Lnet/minecraft/server/world/ChunkTicketType;CAN_EXPIRE_BEFORE_LOAD:I
      intermediary field_61100 Lnet/minecraft/class_3230;field_61100:I
      official f Laxt;f:I
    • PLAYER_SPAWN

      public static final ChunkTicketType PLAYER_SPAWN
      Mappings:
      Namespace Name Mixin selector
      named PLAYER_SPAWN Lnet/minecraft/server/world/ChunkTicketType;PLAYER_SPAWN:Lnet/minecraft/server/world/ChunkTicketType;
      intermediary field_61101 Lnet/minecraft/class_3230;field_61101:Lnet/minecraft/class_3230;
      official g Laxt;g:Laxt;
    • 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 i Laxt;i:Laxt;
    • 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 j Laxt;j:Laxt;
    • 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 k Laxt;k:Laxt;
    • 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 l Laxt;l:Laxt;
    • 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 m Laxt;m:Laxt;
    • 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 n Laxt;n:Laxt;
    • 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 o Laxt;o:Laxt;
  • Constructor Details

    • ChunkTicketType

      public ChunkTicketType(long timeout, int flags)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/world/ChunkTicketType;<init>(JI)V
      intermediary <init> Lnet/minecraft/class_3230;<init>(JI)V
      official <init> Laxt;<init>(JI)V
  • Method Details

    • register

      private static ChunkTicketType register(String id, long expiryTicks, int flags)
      Mappings:
      Namespace Name Mixin selector
      named register Lnet/minecraft/server/world/ChunkTicketType;register(Ljava/lang/String;JI)Lnet/minecraft/server/world/ChunkTicketType;
      intermediary method_66026 Lnet/minecraft/class_3230;method_66026(Ljava/lang/String;JI)Lnet/minecraft/class_3230;
      official a Laxt;a(Ljava/lang/String;JI)Laxt;
    • shouldSerialize

      public boolean shouldSerialize()
      Mappings:
      Namespace Name Mixin selector
      named shouldSerialize Lnet/minecraft/server/world/ChunkTicketType;shouldSerialize()Z
      intermediary method_72273 Lnet/minecraft/class_3230;method_72273()Z
      official a Laxt;a()Z
    • 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 b Laxt;b()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 c Laxt;c()Z
    • resetsIdleTimeout

      public boolean resetsIdleTimeout()
      Mappings:
      Namespace Name Mixin selector
      named resetsIdleTimeout Lnet/minecraft/server/world/ChunkTicketType;resetsIdleTimeout()Z
      intermediary method_72274 Lnet/minecraft/class_3230;method_72274()Z
      official d Laxt;d()Z
    • canExpireBeforeLoad

      public boolean canExpireBeforeLoad()
      Mappings:
      Namespace Name Mixin selector
      named canExpireBeforeLoad Lnet/minecraft/server/world/ChunkTicketType;canExpireBeforeLoad()Z
      intermediary method_72275 Lnet/minecraft/class_3230;method_72275()Z
      official e Laxt;e()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 f Laxt;f()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. All components in this record class 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
    • flags

      public int flags()
      Returns the value of the flags record component.
      Returns:
      the value of the flags record component