Record Class GameJoinS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.GameJoinS2CPacket
- Record Components:
playerEntityId
-hardcore
-dimensionIds
-maxPlayers
-viewDistance
-simulationDistance
-reducedDebugInfo
-showDeathScreen
-doLimitedCrafting
-commonPlayerSpawnInfo
-
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public record GameJoinS2CPacket(int playerEntityId, boolean hardcore, Set<RegistryKey<World>> dimensionIds, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean showDeathScreen, boolean doLimitedCrafting, CommonPlayerSpawnInfo commonPlayerSpawnInfo)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official yl
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_92
named dimensionIds
official d
intermediary comp_97
named maxPlayers
official e
intermediary comp_98
named viewDistance
official f
intermediary comp_169
named simulationDistance
official g
intermediary comp_99
named reducedDebugInfo
official h
intermediary comp_100
named showDeathScreen
official i
intermediary comp_1964
named doLimitedCrafting
official j
intermediary comp_1727
named commonPlayerSpawnInfo
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CommonPlayerSpawnInfo
The field for thecommonPlayerSpawnInfo
record component.private final Set<RegistryKey<World>>
The field for thedimensionIds
record component.private final boolean
The field for thedoLimitedCrafting
record component.private final boolean
The field for thehardcore
record component.private final int
The field for themaxPlayers
record component.private final int
The field for theplayerEntityId
record component.private final boolean
The field for thereducedDebugInfo
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, Set<RegistryKey<World>> set, int int2, int int3, int int4, boolean bool2, boolean bool3, boolean bool4, CommonPlayerSpawnInfo commonPlayerSpawnInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientPlayPacketListener clientPlayPacketListener) Returns the value of thecommonPlayerSpawnInfo
record component.Returns the value of thedimensionIds
record component.boolean
Returns the value of thedoLimitedCrafting
record component.final boolean
Indicates whether some other object is "equal to" this one.boolean
hardcore()
Returns the value of thehardcore
record component.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of themaxPlayers
record component.int
Returns the value of theplayerEntityId
record component.boolean
Returns the value of thereducedDebugInfo
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.Packet
getNewNetworkState, isWritingErrorSkippable
-
Field Details
-
playerEntityId
private final int playerEntityIdThe field for theplayerEntityId
record component. -
hardcore
private final boolean hardcoreThe field for thehardcore
record component. -
dimensionIds
The field for thedimensionIds
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. -
doLimitedCrafting
private final boolean doLimitedCraftingThe field for thedoLimitedCrafting
record component. -
commonPlayerSpawnInfo
The field for thecommonPlayerSpawnInfo
record component.
-
-
Constructor Details
-
GameJoinS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Lyl;<init>(Lso;)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, Set<RegistryKey<World>> set, int int2, int int3, int int4, boolean bool2, boolean bool3, boolean bool4, CommonPlayerSpawnInfo commonPlayerSpawnInfo) - Mappings:
Namespace Name Mixin selector official <init>
Lyl;<init>(IZLjava/util/Set;IIIZZZLaaz;)V
intermediary <init>
Lnet/minecraft/class_2678;<init>(IZLjava/util/Set;IIIZZZLnet/minecraft/class_8589;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;<init>(IZLjava/util/Set;IIIZZZLnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;)V
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lvd;a(Lso;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lyl;a(Lww;)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
-
dimensionIds
Returns the value of thedimensionIds
record component.- Returns:
- the value of the
dimensionIds
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
-
doLimitedCrafting
public boolean doLimitedCrafting()Returns the value of thedoLimitedCrafting
record component.- Returns:
- the value of the
doLimitedCrafting
record component
-
commonPlayerSpawnInfo
Returns the value of thecommonPlayerSpawnInfo
record component.- Returns:
- the value of the
commonPlayerSpawnInfo
record component
-