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/ChunkTicketTypeintermediary net/minecraft/class_3230official asinamed expiryTicksintermediary comp_3474official jnamed persistintermediary comp_3475official knamed useintermediary comp_3476official l
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChunkTicketTypeUsed by the ender dragon to load the central end island during the boss battle.static final ChunkTicketTypeprivate final longThe field for theexpiryTicksrecord component.static final ChunkTicketTypeUsed to force load chunks.static final longprivate final booleanThe field for thepersistrecord component.static final ChunkTicketTypestatic final ChunkTicketTypestatic final ChunkTicketTypeUsed by a nether portal to load chunks in the other dimension.static final ChunkTicketTypestatic final ChunkTicketTypeRepresents a type of ticket that has an unknown cause for loading chunks.private final ChunkTicketType.UseThe field for theuserecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiryTicksrecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanbooleanpersist()Returns the value of thepersistrecord component.private static ChunkTicketTyperegister(String id, long expiryTicks, boolean persist, ChunkTicketType.Use use) final StringtoString()Returns a string representation of this record class.use()Returns the value of theuserecord component.
-
Field Details
-
expiryTicks
private final long expiryTicksThe field for theexpiryTicksrecord component. -
persist
private final boolean persistThe field for thepersistrecord component. -
use
The field for theuserecord component. -
NO_EXPIRATION
public static final long NO_EXPIRATION- See Also:
- Mappings:
Namespace Name Mixin selector named NO_EXPIRATIONLnet/minecraft/server/world/ChunkTicketType;NO_EXPIRATION:Jintermediary field_55598Lnet/minecraft/class_3230;field_55598:Jofficial aLasi;a:J
-
START
- Mappings:
Namespace Name Mixin selector named STARTLnet/minecraft/server/world/ChunkTicketType;START:Lnet/minecraft/server/world/ChunkTicketType;intermediary field_14030Lnet/minecraft/class_3230;field_14030:Lnet/minecraft/class_3230;official bLasi;b:Lasi;
-
DRAGON
Used by the ender dragon to load the central end island during the boss battle.- Mappings:
Namespace Name Mixin selector named DRAGONLnet/minecraft/server/world/ChunkTicketType;DRAGON:Lnet/minecraft/server/world/ChunkTicketType;intermediary field_17264Lnet/minecraft/class_3230;field_17264:Lnet/minecraft/class_3230;official cLasi;c:Lasi;
-
PLAYER_LOADING
- Mappings:
Namespace Name Mixin selector named PLAYER_LOADINGLnet/minecraft/server/world/ChunkTicketType;PLAYER_LOADING:Lnet/minecraft/server/world/ChunkTicketType;intermediary field_55599Lnet/minecraft/class_3230;field_55599:Lnet/minecraft/class_3230;official dLasi;d:Lasi;
-
PLAYER_SIMULATION
- Mappings:
Namespace Name Mixin selector named PLAYER_SIMULATIONLnet/minecraft/server/world/ChunkTicketType;PLAYER_SIMULATION:Lnet/minecraft/server/world/ChunkTicketType;intermediary field_55600Lnet/minecraft/class_3230;field_55600:Lnet/minecraft/class_3230;official eLasi;e:Lasi;
-
FORCED
Used to force load chunks.- Mappings:
Namespace Name Mixin selector named FORCEDLnet/minecraft/server/world/ChunkTicketType;FORCED:Lnet/minecraft/server/world/ChunkTicketType;intermediary field_14031Lnet/minecraft/class_3230;field_14031:Lnet/minecraft/class_3230;official fLasi;f:Lasi;
-
PORTAL
Used by a nether portal to load chunks in the other dimension.- Mappings:
Namespace Name Mixin selector named PORTALLnet/minecraft/server/world/ChunkTicketType;PORTAL:Lnet/minecraft/server/world/ChunkTicketType;intermediary field_19280Lnet/minecraft/class_3230;field_19280:Lnet/minecraft/class_3230;official gLasi;g:Lasi;
-
ENDER_PEARL
- Mappings:
Namespace Name Mixin selector named ENDER_PEARLLnet/minecraft/server/world/ChunkTicketType;ENDER_PEARL:Lnet/minecraft/server/world/ChunkTicketType;intermediary field_54211Lnet/minecraft/class_3230;field_54211:Lnet/minecraft/class_3230;official hLasi;h:Lasi;
-
UNKNOWN
Represents a type of ticket that has an unknown cause for loading chunks.- Mappings:
Namespace Name Mixin selector named UNKNOWNLnet/minecraft/server/world/ChunkTicketType;UNKNOWN:Lnet/minecraft/server/world/ChunkTicketType;intermediary field_14032Lnet/minecraft/class_3230;field_14032:Lnet/minecraft/class_3230;official iLasi;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 registerLnet/minecraft/server/world/ChunkTicketType;register(Ljava/lang/String;JZLnet/minecraft/server/world/ChunkTicketType$Use;)Lnet/minecraft/server/world/ChunkTicketType;intermediary method_66026Lnet/minecraft/class_3230;method_66026(Ljava/lang/String;JZLnet/minecraft/class_3230$class_10558;)Lnet/minecraft/class_3230;official aLasi;a(Ljava/lang/String;JZLasi$a;)Lasi;
-
isForLoading
public boolean isForLoading()- Mappings:
Namespace Name Mixin selector named isForLoadingLnet/minecraft/server/world/ChunkTicketType;isForLoading()Zintermediary method_66025Lnet/minecraft/class_3230;method_66025()Zofficial aLasi;a()Z
-
isForSimulation
public boolean isForSimulation()- Mappings:
Namespace Name Mixin selector named isForSimulationLnet/minecraft/server/world/ChunkTicketType;isForSimulation()Zintermediary method_66027Lnet/minecraft/class_3230;method_66027()Zofficial bLasi;b()Z
-
canExpire
public boolean canExpire()- Mappings:
Namespace Name Mixin selector named canExpireLnet/minecraft/server/world/ChunkTicketType;canExpire()Zintermediary method_66028Lnet/minecraft/class_3230;method_66028()Zofficial cLasi;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 theexpiryTicksrecord component.- Returns:
- the value of the
expiryTicksrecord component
-
persist
public boolean persist()Returns the value of thepersistrecord component.- Returns:
- the value of the
persistrecord component
-
use
Returns the value of theuserecord component.- Returns:
- the value of the
userecord component
-