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
-seaLevel
-
public record CommonPlayerSpawnInfo(RegistryEntry<DimensionType> dimensionType, RegistryKey<World> dimension, long seed, GameMode gameMode, @Nullable GameMode prevGameMode, boolean isDebug, boolean isFlat, Optional<GlobalPos> lastDeathLocation, int portalCooldown, int seaLevel)
extends Record
- Mappings:
Namespace Name named net/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo
intermediary net/minecraft/class_8589
official ahh
named dimensionType
intermediary comp_1553
official a
named dimension
intermediary comp_1554
official b
named seed
intermediary comp_1555
official c
named gameMode
intermediary comp_1556
official d
named prevGameMode
intermediary comp_1557
official e
named isDebug
intermediary comp_1558
official f
named isFlat
intermediary comp_1559
official g
named lastDeathLocation
intermediary comp_1560
official h
named portalCooldown
intermediary comp_1561
official i
named seaLevel
intermediary comp_2893
official j
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RegistryKey
<World> The field for thedimension
record component.private final RegistryEntry
<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.The field for theprevGameMode
record component.private final int
The field for theseaLevel
record component.private final long
The field for theseed
record component. -
Constructor Summary
ConstructorDescriptionCommonPlayerSpawnInfo
(RegistryEntry<DimensionType> registryEntry, RegistryKey<World> registryKey, long long2, GameMode gameMode, @Nullable GameMode gameMode2, boolean bool, boolean bool2, Optional<GlobalPos> optional, int int2, int int3) -
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.Returns the value of theprevGameMode
record component.int
seaLevel()
Returns the value of theseaLevel
record component.long
seed()
Returns the value of theseed
record component.final String
toString()
Returns a string representation of this record class.void
write
(RegistryByteBuf 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. -
seaLevel
private final int seaLevelThe field for theseaLevel
record component.
-
-
Constructor Details
-
CommonPlayerSpawnInfo
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;<init>(Lnet/minecraft/network/RegistryByteBuf;)V
intermediary <init>
Lnet/minecraft/class_8589;<init>(Lnet/minecraft/class_9129;)V
official <init>
Lahh;<init>(Lxg;)V
-
CommonPlayerSpawnInfo
public CommonPlayerSpawnInfo(RegistryEntry<DimensionType> registryEntry, RegistryKey<World> registryKey, long long2, GameMode gameMode, @Nullable @Nullable GameMode gameMode2, boolean bool, boolean bool2, Optional<GlobalPos> optional, int int2, int int3)
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named write
Lnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;write(Lnet/minecraft/network/RegistryByteBuf;)V
intermediary method_52274
Lnet/minecraft/class_8589;method_52274(Lnet/minecraft/class_9129;)V
official a
Lahh;a(Lxg;)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
-
seaLevel
public int seaLevel()Returns the value of theseaLevel
record component.- Returns:
- the value of the
seaLevel
record component
-