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
-
- 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)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official ut
intermediary net/minecraft/class_2678
named net/minecraft/network/packet/s2c/play/GameJoinS2CPacket
official a
intermediary comp_88
named playerEntityId
official b
intermediary comp_89
named hardcore
official c
intermediary comp_90
named gameMode
official d
intermediary comp_91
named previousGameMode
official e
intermediary comp_92
named dimensionIds
official f
intermediary comp_93
named registryManager
official g
intermediary comp_94
named dimensionType
official h
intermediary comp_95
named dimensionId
official i
intermediary comp_96
named sha256Seed
official j
intermediary comp_97
named maxPlayers
official k
intermediary comp_98
named viewDistance
official l
intermediary comp_169
named simulationDistance
official m
intermediary comp_99
named reducedDebugInfo
official n
intermediary comp_100
named showDeathScreen
official o
intermediary comp_101
named debugWorld
official p
intermediary comp_102
named flatWorld
official q
intermediary comp_860
named lastDeathLocation
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
The field for thedebugWorld
record component.private final RegistryKey<World>
The field for thedimensionId
record component.private final Set<RegistryKey<World>>
The field for thedimensionIds
record component.private final RegistryKey<DimensionType>
The field for thedimensionType
record component.private final boolean
The field for theflatWorld
record component.private final GameMode
The field for thegameMode
record component.private final boolean
The field for thehardcore
record component.The field for thelastDeathLocation
record component.private final int
The field for themaxPlayers
record component.private final int
The field for theplayerEntityId
record component.The field for thepreviousGameMode
record component.private final boolean
The field for thereducedDebugInfo
record component.private final DynamicRegistryManager.Immutable
The field for theregistryManager
record component.private final long
The field for thesha256Seed
record component.private final boolean
The field for theshowDeathScreen
record component.private final int
The field for thesimulationDistance
record component.private final int
The field for theviewDistance
record component. -
Constructor Summary
ConstructorDescriptionGameJoinS2CPacket
(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) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientPlayPacketListener clientPlayPacketListener) boolean
Returns the value of thedebugWorld
record component.Returns the value of thedimensionId
record component.Returns the value of thedimensionIds
record component.Returns the value of thedimensionType
record component.final boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of theflatWorld
record component.gameMode()
Returns the value of thegameMode
record component.boolean
hardcore()
Returns the value of thehardcore
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelastDeathLocation
record component.int
Returns the value of themaxPlayers
record component.int
Returns the value of theplayerEntityId
record component.Returns the value of thepreviousGameMode
record component.boolean
Returns the value of thereducedDebugInfo
record component.Returns the value of theregistryManager
record component.long
Returns the value of thesha256Seed
record component.boolean
Returns the value of theshowDeathScreen
record component.int
Returns the value of thesimulationDistance
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of theviewDistance
record component.void
write
(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
playerEntityId
private final int playerEntityIdThe field for theplayerEntityId
record component. -
hardcore
private final boolean hardcoreThe field for thehardcore
record component. -
gameMode
The field for thegameMode
record component. -
previousGameMode
The field for thepreviousGameMode
record component. -
dimensionIds
The field for thedimensionIds
record component. -
registryManager
The field for theregistryManager
record component. -
dimensionType
The field for thedimensionType
record component. -
dimensionId
The field for thedimensionId
record component. -
sha256Seed
private final long sha256SeedThe field for thesha256Seed
record component. -
maxPlayers
private final int maxPlayersThe field for themaxPlayers
record component. -
viewDistance
private final int viewDistanceThe field for theviewDistance
record component. -
simulationDistance
private final int simulationDistanceThe field for thesimulationDistance
record component. -
reducedDebugInfo
private final boolean reducedDebugInfoThe field for thereducedDebugInfo
record component. -
showDeathScreen
private final boolean showDeathScreenThe field for theshowDeathScreen
record component. -
debugWorld
private final boolean debugWorldThe field for thedebugWorld
record component. -
flatWorld
private final boolean flatWorldThe field for theflatWorld
record component. -
lastDeathLocation
The field for thelastDeathLocation
record component.
-
-
Constructor Details
-
GameJoinS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Lut;<init>(Lqx;)V
intermediary <init>
Lnet/minecraft/class_2678;<init>(Lnet/minecraft/class_2540;)V
named <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) - Mappings:
Namespace Name Mixin selector official <init>
Lut;<init>(IZLcgu;Lcgu;Ljava/util/Set;Lhn$a;Laba;Laba;JIIIZZZZLjava/util/Optional;)V
intermediary <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;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;<init>(IZLnet/minecraft/world/GameMode;Lnet/minecraft/world/GameMode;Ljava/util/Set;Lnet/minecraft/util/registry/DynamicRegistryManager$Immutable;Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/util/registry/RegistryKey;JIIIZZZZLjava/util/Optional;)V
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Ltc;a(Lqx;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lut;a(Ltf;)V
intermediary method_11567
Lnet/minecraft/class_2678;method_11567(Lnet/minecraft/class_2602;)V
named apply
Lnet/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 theplayerEntityId
record component.- Returns:
- the value of the
playerEntityId
record component
-
hardcore
public boolean hardcore()Returns the value of thehardcore
record component.- Returns:
- the value of the
hardcore
record component
-
gameMode
Returns the value of thegameMode
record component.- Returns:
- the value of the
gameMode
record component
-
previousGameMode
Returns the value of thepreviousGameMode
record component.- Returns:
- the value of the
previousGameMode
record component
-
dimensionIds
Returns the value of thedimensionIds
record component.- Returns:
- the value of the
dimensionIds
record component
-
registryManager
Returns the value of theregistryManager
record component.- Returns:
- the value of the
registryManager
record component
-
dimensionType
Returns the value of thedimensionType
record component.- Returns:
- the value of the
dimensionType
record component
-
dimensionId
Returns the value of thedimensionId
record component.- Returns:
- the value of the
dimensionId
record component
-
sha256Seed
public long sha256Seed()Returns the value of thesha256Seed
record component.- Returns:
- the value of the
sha256Seed
record component
-
maxPlayers
public int maxPlayers()Returns the value of themaxPlayers
record component.- Returns:
- the value of the
maxPlayers
record component
-
viewDistance
public int viewDistance()Returns the value of theviewDistance
record component.- Returns:
- the value of the
viewDistance
record component
-
simulationDistance
public int simulationDistance()Returns the value of thesimulationDistance
record component.- Returns:
- the value of the
simulationDistance
record component
-
reducedDebugInfo
public boolean reducedDebugInfo()Returns the value of thereducedDebugInfo
record component.- Returns:
- the value of the
reducedDebugInfo
record component
-
showDeathScreen
public boolean showDeathScreen()Returns the value of theshowDeathScreen
record component.- Returns:
- the value of the
showDeathScreen
record component
-
debugWorld
public boolean debugWorld()Returns the value of thedebugWorld
record component.- Returns:
- the value of the
debugWorld
record component
-
flatWorld
public boolean flatWorld()Returns the value of theflatWorld
record component.- Returns:
- the value of the
flatWorld
record component
-
lastDeathLocation
Returns the value of thelastDeathLocation
record component.- Returns:
- the value of the
lastDeathLocation
record component
-