Package net.minecraft.server.world
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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChunkTicketType
Used by the ender dragon to load the central end island during the boss battle.static final ChunkTicketType
private final long
The field for theexpiryTicks
record component.static final ChunkTicketType
Used to force load chunks.static final long
private final boolean
The field for thepersist
record component.static final ChunkTicketType
static final ChunkTicketType
static final ChunkTicketType
Used by a nether portal to load chunks in the other dimension.static final ChunkTicketType
static final ChunkTicketType
Represents a type of ticket that has an unknown cause for loading chunks.private final ChunkTicketType.Use
The field for theuse
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
final boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of theexpiryTicks
record component.final int
hashCode()
Returns a hash code value for this object.boolean
boolean
boolean
persist()
Returns the value of thepersist
record component.private static ChunkTicketType
register
(String id, long expiryTicks, boolean persist, ChunkTicketType.Use use) final String
toString()
Returns a string representation of this record class.use()
Returns the value of theuse
record component.
-
Field Details
-
expiryTicks
private final long expiryTicksThe field for theexpiryTicks
record component. -
persist
private final boolean persistThe field for thepersist
record component. -
use
The field for theuse
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
- 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
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
- 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
- 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
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
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
- 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
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
-
-
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
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
expiryTicks
public long expiryTicks()Returns the value of theexpiryTicks
record component.- Returns:
- the value of the
expiryTicks
record component
-
persist
public boolean persist()Returns the value of thepersist
record component.- Returns:
- the value of the
persist
record component
-
use
Returns the value of theuse
record component.- Returns:
- the value of the
use
record component
-