Record Class GameJoinS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.GameJoinS2CPacket
- Record Components:
playerEntityId-hardcore-gameMode-previousGameMode-dimensionIds-registryManager-dimensionType-dimensionId-sha256Seed-maxPlayers-viewDistance-simulationDistance-reducedDebugInfo-showDeathScreen-debugWorld-flatWorld-lastDeathLocation-portalCooldown-
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public record GameJoinS2CPacket(int playerEntityId, boolean hardcore, GameMode gameMode, @Nullable GameMode previousGameMode, Set<RegistryKey<World>> dimensionIds, DynamicRegistryManager.Immutable registryManager, RegistryKey<DimensionType> dimensionType, RegistryKey<World> dimensionId, long sha256Seed, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean showDeathScreen, boolean debugWorld, boolean flatWorld, Optional<GlobalPos> lastDeathLocation, int portalCooldown)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official wiintermediary net/minecraft/class_2678named net/minecraft/network/packet/s2c/play/GameJoinS2CPacketofficial aintermediary comp_88named playerEntityIdofficial bintermediary comp_89named hardcoreofficial cintermediary comp_90named gameModeofficial dintermediary comp_91named previousGameModeofficial eintermediary comp_92named dimensionIdsofficial fintermediary comp_93named registryManagerofficial gintermediary comp_94named dimensionTypeofficial hintermediary comp_95named dimensionIdofficial iintermediary comp_96named sha256Seedofficial jintermediary comp_97named maxPlayersofficial kintermediary comp_98named viewDistanceofficial lintermediary comp_169named simulationDistanceofficial mintermediary comp_99named reducedDebugInfoofficial nintermediary comp_100named showDeathScreenofficial ointermediary comp_101named debugWorldofficial pintermediary comp_102named flatWorldofficial qintermediary comp_860named lastDeathLocationofficial rintermediary comp_1532named portalCooldown
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thedebugWorldrecord component.private final RegistryKey<World>The field for thedimensionIdrecord component.private final Set<RegistryKey<World>>The field for thedimensionIdsrecord component.private final RegistryKey<DimensionType>The field for thedimensionTyperecord component.private final booleanThe field for theflatWorldrecord component.private final GameModeThe field for thegameModerecord component.private final booleanThe field for thehardcorerecord component.The field for thelastDeathLocationrecord component.private final intThe field for themaxPlayersrecord component.private final intThe field for theplayerEntityIdrecord component.private final intThe field for theportalCooldownrecord component.The field for thepreviousGameModerecord component.private final booleanThe field for thereducedDebugInforecord component.private static final RegistryOps<NbtElement>private final DynamicRegistryManager.ImmutableThe field for theregistryManagerrecord component.private final longThe field for thesha256Seedrecord component.private final booleanThe field for theshowDeathScreenrecord component.private final intThe field for thesimulationDistancerecord component.private final intThe field for theviewDistancerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGameJoinS2CPacket(int playerEntityId, boolean bool, GameMode previousGameMode, @Nullable GameMode gameMode, Set<RegistryKey<World>> set, DynamicRegistryManager.Immutable immutable, RegistryKey<DimensionType> registryKey, RegistryKey<World> registryKey2, long long2, int maxPlayers, int chunkLoadDistance, int int2, boolean bool2, boolean bool3, boolean bool4, boolean bool5, Optional<GlobalPos> optional, int int3) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) booleanReturns the value of thedebugWorldrecord component.Returns the value of thedimensionIdrecord component.Returns the value of thedimensionIdsrecord component.Returns the value of thedimensionTyperecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theflatWorldrecord component.gameMode()Returns the value of thegameModerecord component.booleanhardcore()Returns the value of thehardcorerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelastDeathLocationrecord component.intReturns the value of themaxPlayersrecord component.intReturns the value of theplayerEntityIdrecord component.intReturns the value of theportalCooldownrecord component.Returns the value of thepreviousGameModerecord component.booleanReturns the value of thereducedDebugInforecord component.Returns the value of theregistryManagerrecord component.longReturns the value of thesha256Seedrecord component.booleanReturns the value of theshowDeathScreenrecord component.intReturns the value of thesimulationDistancerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theviewDistancerecord component.voidwrite(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable
-
Field Details
-
playerEntityId
private final int playerEntityIdThe field for theplayerEntityIdrecord component. -
hardcore
private final boolean hardcoreThe field for thehardcorerecord component. -
gameMode
The field for thegameModerecord component. -
previousGameMode
The field for thepreviousGameModerecord component. -
dimensionIds
The field for thedimensionIdsrecord component. -
registryManager
The field for theregistryManagerrecord component. -
dimensionType
The field for thedimensionTyperecord component. -
dimensionId
The field for thedimensionIdrecord component. -
sha256Seed
private final long sha256SeedThe field for thesha256Seedrecord component. -
maxPlayers
private final int maxPlayersThe field for themaxPlayersrecord component. -
viewDistance
private final int viewDistanceThe field for theviewDistancerecord component. -
simulationDistance
private final int simulationDistanceThe field for thesimulationDistancerecord component. -
reducedDebugInfo
private final boolean reducedDebugInfoThe field for thereducedDebugInforecord component. -
showDeathScreen
private final boolean showDeathScreenThe field for theshowDeathScreenrecord component. -
debugWorld
private final boolean debugWorldThe field for thedebugWorldrecord component. -
flatWorld
private final boolean flatWorldThe field for theflatWorldrecord component. -
lastDeathLocation
The field for thelastDeathLocationrecord component. -
portalCooldown
private final int portalCooldownThe field for theportalCooldownrecord component. -
REGISTRY_OPS
- Mappings:
Namespace Name Mixin selector official sLwi;s:Laco;intermediary field_42104Lnet/minecraft/class_2678;field_42104:Lnet/minecraft/class_6903;named REGISTRY_OPSLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;REGISTRY_OPS:Lnet/minecraft/registry/RegistryOps;
-
-
Constructor Details
-
GameJoinS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>Lwi;<init>(Lsf;)Vintermediary <init>Lnet/minecraft/class_2678;<init>(Lnet/minecraft/class_2540;)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
GameJoinS2CPacket
public GameJoinS2CPacket(int playerEntityId, boolean bool, GameMode previousGameMode, @Nullable @Nullable GameMode gameMode, Set<RegistryKey<World>> set, DynamicRegistryManager.Immutable immutable, RegistryKey<DimensionType> registryKey, RegistryKey<World> registryKey2, long long2, int maxPlayers, int chunkLoadDistance, int int2, boolean bool2, boolean bool3, boolean bool4, boolean bool5, Optional<GlobalPos> optional, int int3) - Mappings:
Namespace Name Mixin selector official <init>Lwi;<init>(IZLcmh;Lcmh;Ljava/util/Set;Lhs$b;Lacp;Lacp;JIIIZZZZLjava/util/Optional;I)Vintermediary <init>Lnet/minecraft/class_2678;<init>(IZLnet/minecraft/class_1934;Lnet/minecraft/class_1934;Ljava/util/Set;Lnet/minecraft/class_5455$class_6890;Lnet/minecraft/class_5321;Lnet/minecraft/class_5321;JIIIZZZZLjava/util/Optional;I)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;<init>(IZLnet/minecraft/world/GameMode;Lnet/minecraft/world/GameMode;Ljava/util/Set;Lnet/minecraft/registry/DynamicRegistryManager$Immutable;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/registry/RegistryKey;JIIIZZZZLjava/util/Optional;I)V
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLuo;a(Lsf;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLwi;a(Lur;)Vintermediary method_11567Lnet/minecraft/class_2678;method_11567(Lnet/minecraft/class_2602;)Vnamed applyLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)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 '=='. -
playerEntityId
public int playerEntityId()Returns the value of theplayerEntityIdrecord component.- Returns:
- the value of the
playerEntityIdrecord component
-
hardcore
public boolean hardcore()Returns the value of thehardcorerecord component.- Returns:
- the value of the
hardcorerecord component
-
gameMode
Returns the value of thegameModerecord component.- Returns:
- the value of the
gameModerecord component
-
previousGameMode
Returns the value of thepreviousGameModerecord component.- Returns:
- the value of the
previousGameModerecord component
-
dimensionIds
Returns the value of thedimensionIdsrecord component.- Returns:
- the value of the
dimensionIdsrecord component
-
registryManager
Returns the value of theregistryManagerrecord component.- Returns:
- the value of the
registryManagerrecord component
-
dimensionType
Returns the value of thedimensionTyperecord component.- Returns:
- the value of the
dimensionTyperecord component
-
dimensionId
Returns the value of thedimensionIdrecord component.- Returns:
- the value of the
dimensionIdrecord component
-
sha256Seed
public long sha256Seed()Returns the value of thesha256Seedrecord component.- Returns:
- the value of the
sha256Seedrecord component
-
maxPlayers
public int maxPlayers()Returns the value of themaxPlayersrecord component.- Returns:
- the value of the
maxPlayersrecord component
-
viewDistance
public int viewDistance()Returns the value of theviewDistancerecord component.- Returns:
- the value of the
viewDistancerecord component
-
simulationDistance
public int simulationDistance()Returns the value of thesimulationDistancerecord component.- Returns:
- the value of the
simulationDistancerecord component
-
reducedDebugInfo
public boolean reducedDebugInfo()Returns the value of thereducedDebugInforecord component.- Returns:
- the value of the
reducedDebugInforecord component
-
showDeathScreen
public boolean showDeathScreen()Returns the value of theshowDeathScreenrecord component.- Returns:
- the value of the
showDeathScreenrecord component
-
debugWorld
public boolean debugWorld()Returns the value of thedebugWorldrecord component.- Returns:
- the value of the
debugWorldrecord component
-
flatWorld
public boolean flatWorld()Returns the value of theflatWorldrecord component.- Returns:
- the value of the
flatWorldrecord 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
-