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(RegistryEntry<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 named net/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfointermediary net/minecraft/class_8589official agdnamed dimensionTypeintermediary comp_1553official anamed dimensionintermediary comp_1554official bnamed seedintermediary comp_1555official cnamed gameModeintermediary comp_1556official dnamed prevGameModeintermediary comp_1557official enamed isDebugintermediary comp_1558official fnamed isFlatintermediary comp_1559official gnamed lastDeathLocationintermediary comp_1560official hnamed portalCooldownintermediary comp_1561official i
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryKey<World> The field for thedimensionrecord component.private final RegistryEntry<DimensionType> The field for thedimensionTyperecord component.private final GameModeThe field for thegameModerecord component.private final booleanThe field for theisDebugrecord component.private final booleanThe field for theisFlatrecord component.The field for thelastDeathLocationrecord component.private final intThe field for theportalCooldownrecord component.The field for theprevGameModerecord component.private final longThe field for theseedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCommonPlayerSpawnInfo(RegistryEntry<DimensionType> registryEntry, RegistryKey<World> registryKey, long long2, GameMode gameMode, @Nullable GameMode gameMode2, boolean bool, boolean bool2, Optional<GlobalPos> optional, int int2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedimensionrecord component.Returns the value of thedimensionTyperecord component.final booleanIndicates whether some other object is "equal to" this one.gameMode()Returns the value of thegameModerecord component.final inthashCode()Returns a hash code value for this object.booleanisDebug()Returns the value of theisDebugrecord component.booleanisFlat()Returns the value of theisFlatrecord component.Returns the value of thelastDeathLocationrecord component.intReturns the value of theportalCooldownrecord component.Returns the value of theprevGameModerecord component.longseed()Returns the value of theseedrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(RegistryByteBuf buf)
-
Field Details
-
dimensionType
The field for thedimensionTyperecord component. -
dimension
The field for thedimensionrecord component. -
seed
private final long seedThe field for theseedrecord component. -
gameMode
The field for thegameModerecord component. -
prevGameMode
The field for theprevGameModerecord component. -
isDebug
private final boolean isDebugThe field for theisDebugrecord component. -
isFlat
private final boolean isFlatThe field for theisFlatrecord component. -
lastDeathLocation
The field for thelastDeathLocationrecord component. -
portalCooldown
private final int portalCooldownThe field for theportalCooldownrecord component.
-
-
Constructor Details
-
CommonPlayerSpawnInfo
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;<init>(Lnet/minecraft/network/RegistryByteBuf;)Vintermediary <init>Lnet/minecraft/class_8589;<init>(Lnet/minecraft/class_9129;)Vofficial <init>Lagd;<init>(Lwk;)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)
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named writeLnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;write(Lnet/minecraft/network/RegistryByteBuf;)Vintermediary method_52274Lnet/minecraft/class_8589;method_52274(Lnet/minecraft/class_9129;)Vofficial aLagd;a(Lwk;)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 thedimensionTyperecord component.- Returns:
- the value of the
dimensionTyperecord component
-
dimension
Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-
seed
public long seed()Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
gameMode
Returns the value of thegameModerecord component.- Returns:
- the value of the
gameModerecord component
-
prevGameMode
Returns the value of theprevGameModerecord component.- Returns:
- the value of the
prevGameModerecord component
-
isDebug
public boolean isDebug()Returns the value of theisDebugrecord component.- Returns:
- the value of the
isDebugrecord component
-
isFlat
public boolean isFlat()Returns the value of theisFlatrecord component.- Returns:
- the value of the
isFlatrecord component
-
lastDeathLocation
Returns the value of thelastDeathLocationrecord component.- Returns:
- the value of the
lastDeathLocationrecord component
-
portalCooldown
public int portalCooldown()Returns the value of theportalCooldownrecord component.- Returns:
- the value of the
portalCooldownrecord component
-