Record Class CommonPlayerSpawnInfo
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.CommonPlayerSpawnInfo
- Record Components:
dimensionType
-dimension
-seed
-gameMode
-prevGameMode
-isDebug
-isFlat
-lastDeathLocation
-portalCooldown
-
public record CommonPlayerSpawnInfo(RegistryKey<DimensionType> dimensionType, RegistryKey<World> dimension, long seed, GameMode gameMode, @Nullable GameMode prevGameMode, boolean isDebug, boolean isFlat, Optional<GlobalPos> lastDeathLocation, int portalCooldown)
extends Record
- Mappings:
Namespace Name official aaz
intermediary net/minecraft/class_8589
named net/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo
official a
intermediary comp_1553
named dimensionType
official b
intermediary comp_1554
named dimension
official c
intermediary comp_1555
named seed
official d
intermediary comp_1556
named gameMode
official e
intermediary comp_1557
named prevGameMode
official f
intermediary comp_1558
named isDebug
official g
intermediary comp_1559
named isFlat
official h
intermediary comp_1560
named lastDeathLocation
official i
intermediary comp_1561
named portalCooldown
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RegistryKey<World>
The field for thedimension
record component.private final RegistryKey<DimensionType>
The field for thedimensionType
record component.private final GameMode
The field for thegameMode
record component.private final boolean
The field for theisDebug
record component.private final boolean
The field for theisFlat
record component.The field for thelastDeathLocation
record component.private final int
The field for theportalCooldown
record component.private final @Nullable GameMode
The field for theprevGameMode
record component.private final long
The field for theseed
record component. -
Constructor Summary
ConstructorDescriptionCommonPlayerSpawnInfo
(RegistryKey<DimensionType> registryKey, RegistryKey<World> registryKey2, long long2, GameMode gameMode, @Nullable GameMode gameMode2, boolean bool, boolean bool2, Optional<GlobalPos> optional, int int2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedimension
record component.Returns the value of thedimensionType
record component.final boolean
Indicates whether some other object is "equal to" this one.gameMode()
Returns the value of thegameMode
record component.final int
hashCode()
Returns a hash code value for this object.boolean
isDebug()
Returns the value of theisDebug
record component.boolean
isFlat()
Returns the value of theisFlat
record component.Returns the value of thelastDeathLocation
record component.int
Returns the value of theportalCooldown
record component.@Nullable GameMode
Returns the value of theprevGameMode
record component.long
seed()
Returns the value of theseed
record component.final String
toString()
Returns a string representation of this record class.void
write
(PacketByteBuf buf)
-
Field Details
-
dimensionType
The field for thedimensionType
record component. -
dimension
The field for thedimension
record component. -
seed
private final long seedThe field for theseed
record component. -
gameMode
The field for thegameMode
record component. -
prevGameMode
The field for theprevGameMode
record component. -
isDebug
private final boolean isDebugThe field for theisDebug
record component. -
isFlat
private final boolean isFlatThe field for theisFlat
record component. -
lastDeathLocation
The field for thelastDeathLocation
record component. -
portalCooldown
private final int portalCooldownThe field for theportalCooldown
record component.
-
-
Constructor Details
-
CommonPlayerSpawnInfo
- Mappings:
Namespace Name Mixin selector official <init>
Laaz;<init>(Lso;)V
intermediary <init>
Lnet/minecraft/class_8589;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
CommonPlayerSpawnInfo
public CommonPlayerSpawnInfo(RegistryKey<DimensionType> registryKey, RegistryKey<World> registryKey2, long long2, GameMode gameMode, @Nullable @Nullable GameMode gameMode2, boolean bool, boolean bool2, Optional<GlobalPos> optional, int int2)
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector official a
Laaz;a(Lso;)V
intermediary method_52274
Lnet/minecraft/class_8589;method_52274(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;write(Lnet/minecraft/network/PacketByteBuf;)V
-
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 '=='. -
dimensionType
Returns the value of thedimensionType
record component.- Returns:
- the value of the
dimensionType
record component
-
dimension
Returns the value of thedimension
record component.- Returns:
- the value of the
dimension
record component
-
seed
public long seed()Returns the value of theseed
record component.- Returns:
- the value of the
seed
record component
-
gameMode
Returns the value of thegameMode
record component.- Returns:
- the value of the
gameMode
record component
-
prevGameMode
Returns the value of theprevGameMode
record component.- Returns:
- the value of the
prevGameMode
record component
-
isDebug
public boolean isDebug()Returns the value of theisDebug
record component.- Returns:
- the value of the
isDebug
record component
-
isFlat
public boolean isFlat()Returns the value of theisFlat
record component.- Returns:
- the value of the
isFlat
record component
-
lastDeathLocation
Returns the value of thelastDeathLocation
record component.- Returns:
- the value of the
lastDeathLocation
record component
-
portalCooldown
public int portalCooldown()Returns the value of theportalCooldown
record component.- Returns:
- the value of the
portalCooldown
record component
-