Record Class CommonPlayerSpawnInfo
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.CommonPlayerSpawnInfo
- Record Components:
dimensionType-dimension-seed-gameMode-lastGameMode-isDebug-isFlat-lastDeathLocation-portalCooldown-seaLevel-isMap-unlockedEffects-activeEffects-
public record CommonPlayerSpawnInfo(RegistryEntry<DimensionType> dimensionType, RegistryKey<World> dimension, long seed, GameMode gameMode, @Nullable GameMode lastGameMode, boolean isDebug, boolean isFlat, Optional<GlobalPos> lastDeathLocation, int portalCooldown, int seaLevel, boolean isMap, List<class_11109> unlockedEffects, List<class_11109> activeEffects)
extends Record
- Mappings:
Namespace Name named net/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfointermediary net/minecraft/class_8589official ahcnamed dimensionTypeintermediary comp_1553official anamed dimensionintermediary comp_1554official bnamed seedintermediary comp_1555official cnamed gameModeintermediary comp_1556official dnamed lastGameModeintermediary comp_1557official enamed isDebugintermediary comp_1558official fnamed isFlatintermediary comp_1559official gnamed lastDeathLocationintermediary comp_1560official hnamed portalCooldownintermediary comp_1561official inamed seaLevelintermediary comp_2893official jnamed isMapintermediary comp_3893official knamed unlockedEffectsintermediary comp_3894official lnamed activeEffectsintermediary comp_3895official m
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<class_11109> The field for theactiveEffectsrecord component.private 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.private final booleanThe field for theisMaprecord component.The field for thelastDeathLocationrecord component.The field for thelastGameModerecord component.private final intThe field for theportalCooldownrecord component.private final intThe field for theseaLevelrecord component.private final longThe field for theseedrecord component.private final List<class_11109> The field for theunlockedEffectsrecord 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, int int3, boolean bool3, List<class_11109> list, List<class_11109> list2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveEffectsrecord component.Returns 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.booleanisMap()Returns the value of theisMaprecord component.Returns the value of thelastDeathLocationrecord component.Returns the value of thelastGameModerecord component.intReturns the value of theportalCooldownrecord component.intseaLevel()Returns the value of theseaLevelrecord component.longseed()Returns the value of theseedrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunlockedEffectsrecord component.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. -
lastGameMode
The field for thelastGameModerecord 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. -
seaLevel
private final int seaLevelThe field for theseaLevelrecord component. -
isMap
private final boolean isMapThe field for theisMaprecord component. -
unlockedEffects
The field for theunlockedEffectsrecord component. -
activeEffects
The field for theactiveEffectsrecord 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>Lahc;<init>(Lwr;)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, boolean bool3, List<class_11109> list, List<class_11109> list2)
-
-
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 aLahc;a(Lwr;)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
-
lastGameMode
Returns the value of thelastGameModerecord component.- Returns:
- the value of the
lastGameModerecord 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
-
seaLevel
public int seaLevel()Returns the value of theseaLevelrecord component.- Returns:
- the value of the
seaLevelrecord component
-
isMap
public boolean isMap()Returns the value of theisMaprecord component.- Returns:
- the value of the
isMaprecord component
-
unlockedEffects
Returns the value of theunlockedEffectsrecord component.- Returns:
- the value of the
unlockedEffectsrecord component
-
activeEffects
Returns the value of theactiveEffectsrecord component.- Returns:
- the value of the
activeEffectsrecord component
-