Package net.minecraft.server.world
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/ChunkTicketTypeintermediary net/minecraft/class_3230official axsnamed expiryTicksintermediary comp_3474official pnamed flagsintermediary comp_4411official q
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic 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.private final @net.minecraft.server.world.ChunkTicketType.Flags intThe field for theflagsrecord component.static final intstatic final intstatic final ChunkTicketTypeUsed to force load chunks.static final longstatic final ChunkTicketTypestatic final ChunkTicketTypestatic final ChunkTicketTypestatic final ChunkTicketTypeUsed by a nether portal to load chunks in the other dimension.static final intstatic final intstatic final ChunkTicketTypestatic final ChunkTicketTypeRepresents a type of ticket that has an unknown cause for loading chunks. -
Constructor Summary
ConstructorsConstructorDescriptionChunkTicketType(long expiryTicks, int flags) Creates an instance of aChunkTicketTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiryTicksrecord component.intflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanprivate static ChunkTicketTypebooleanbooleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
expiryTicks
private final long expiryTicksThe field for theexpiryTicksrecord component. -
flags
private final @net.minecraft.server.world.ChunkTicketType.Flags int flagsThe field for theflagsrecord 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 aLaxs;a:J
-
SERIALIZE
public static final int SERIALIZE- See Also:
- Mappings:
Namespace Name Mixin selector named SERIALIZELnet/minecraft/server/world/ChunkTicketType;SERIALIZE:Iintermediary field_61096Lnet/minecraft/class_3230;field_61096:Iofficial bLaxs;b:I
-
FOR_LOADING
public static final int FOR_LOADING- See Also:
- Mappings:
Namespace Name Mixin selector named FOR_LOADINGLnet/minecraft/server/world/ChunkTicketType;FOR_LOADING:Iintermediary field_61097Lnet/minecraft/class_3230;field_61097:Iofficial cLaxs;c:I
-
FOR_SIMULATION
public static final int FOR_SIMULATION- See Also:
- Mappings:
Namespace Name Mixin selector named FOR_SIMULATIONLnet/minecraft/server/world/ChunkTicketType;FOR_SIMULATION:Iintermediary field_61098Lnet/minecraft/class_3230;field_61098:Iofficial dLaxs;d:I
-
RESETS_IDLE_TIMEOUT
public static final int RESETS_IDLE_TIMEOUT- See Also:
- Mappings:
Namespace Name Mixin selector named RESETS_IDLE_TIMEOUTLnet/minecraft/server/world/ChunkTicketType;RESETS_IDLE_TIMEOUT:Iintermediary field_61099Lnet/minecraft/class_3230;field_61099:Iofficial eLaxs;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_LOADLnet/minecraft/server/world/ChunkTicketType;CAN_EXPIRE_BEFORE_LOAD:Iintermediary field_61100Lnet/minecraft/class_3230;field_61100:Iofficial fLaxs;f:I
-
PLAYER_SPAWN
- Mappings:
Namespace Name Mixin selector named PLAYER_SPAWNLnet/minecraft/server/world/ChunkTicketType;PLAYER_SPAWN:Lnet/minecraft/server/world/ChunkTicketType;intermediary field_61101Lnet/minecraft/class_3230;field_61101:Lnet/minecraft/class_3230;official gLaxs;g:Laxs;
-
SPAWN_SEARCH
- Mappings:
Namespace Name Mixin selector named SPAWN_SEARCHLnet/minecraft/server/world/ChunkTicketType;SPAWN_SEARCH:Lnet/minecraft/server/world/ChunkTicketType;intermediary field_61102Lnet/minecraft/class_3230;field_61102:Lnet/minecraft/class_3230;official hLaxs;h:Laxs;
-
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 iLaxs;i:Laxs;
-
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 jLaxs;j:Laxs;
-
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 kLaxs;k:Laxs;
-
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 lLaxs;l:Laxs;
-
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 mLaxs;m:Laxs;
-
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 nLaxs;n:Laxs;
-
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 oLaxs;o:Laxs;
-
-
Constructor Details
-
ChunkTicketType
public ChunkTicketType(long expiryTicks, int flags) Creates an instance of aChunkTicketTyperecord class.- Parameters:
expiryTicks- the value for theexpiryTicksrecord componentflags- the value for theflagsrecord component
-
-
Method Details
-
register
- Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/server/world/ChunkTicketType;register(Ljava/lang/String;JI)Lnet/minecraft/server/world/ChunkTicketType;intermediary method_66026Lnet/minecraft/class_3230;method_66026(Ljava/lang/String;JI)Lnet/minecraft/class_3230;official aLaxs;a(Ljava/lang/String;JI)Laxs;
-
shouldSerialize
public boolean shouldSerialize()- Mappings:
Namespace Name Mixin selector named shouldSerializeLnet/minecraft/server/world/ChunkTicketType;shouldSerialize()Zintermediary method_72273Lnet/minecraft/class_3230;method_72273()Zofficial aLaxs;a()Z
-
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 bLaxs;b()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 cLaxs;c()Z
-
resetsIdleTimeout
public boolean resetsIdleTimeout()- Mappings:
Namespace Name Mixin selector named resetsIdleTimeoutLnet/minecraft/server/world/ChunkTicketType;resetsIdleTimeout()Zintermediary method_72274Lnet/minecraft/class_3230;method_72274()Zofficial dLaxs;d()Z
-
canExpireBeforeLoad
public boolean canExpireBeforeLoad()- Mappings:
Namespace Name Mixin selector named canExpireBeforeLoadLnet/minecraft/server/world/ChunkTicketType;canExpireBeforeLoad()Zintermediary method_72275Lnet/minecraft/class_3230;method_72275()Zofficial eLaxs;e()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 fLaxs;f()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. All components in this record class are compared with '=='. -
expiryTicks
public long expiryTicks()Returns the value of theexpiryTicksrecord component.- Returns:
- the value of the
expiryTicksrecord component
-
flags
public int flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-