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
-enforcesSecureChat
-
- 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, boolean enforcesSecureChat)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name named net/minecraft/network/packet/s2c/play/GameJoinS2CPacket
intermediary net/minecraft/class_2678
official adz
named playerEntityId
intermediary comp_88
official b
named hardcore
intermediary comp_89
official c
named dimensionIds
intermediary comp_92
official d
named maxPlayers
intermediary comp_97
official e
named viewDistance
intermediary comp_98
official f
named simulationDistance
intermediary comp_169
official g
named reducedDebugInfo
intermediary comp_99
official h
named showDeathScreen
intermediary comp_100
official i
named doLimitedCrafting
intermediary comp_1964
official j
named commonPlayerSpawnInfo
intermediary comp_1727
official k
named enforcesSecureChat
intermediary comp_2200
official l
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PacketCodec
<RegistryByteBuf, GameJoinS2CPacket> private 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 theenforcesSecureChat
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
ModifierConstructorDescriptionGameJoinS2CPacket
(int playerEntityId, boolean bool, Set<RegistryKey<World>> set, int int2, int int3, int int4, boolean bool2, boolean bool3, boolean bool4, CommonPlayerSpawnInfo commonPlayerSpawnInfo, boolean bool5) private
-
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.boolean
Returns the value of theenforcesSecureChat
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.private void
write
(RegistryByteBuf 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
isWritingErrorSkippable, transitionsNetworkState
-
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. -
enforcesSecureChat
private final boolean enforcesSecureChatThe field for theenforcesSecureChat
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_47937
Lnet/minecraft/class_2678;field_47937:Lnet/minecraft/class_9139;
official a
Ladz;a:Lzn;
-
-
Constructor Details
-
GameJoinS2CPacket
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;<init>(Lnet/minecraft/network/RegistryByteBuf;)V
intermediary <init>
Lnet/minecraft/class_2678;<init>(Lnet/minecraft/class_9129;)V
official <init>
Ladz;<init>(Lxa;)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, boolean bool5) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;<init>(IZLjava/util/Set;IIIZZZLnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;Z)V
intermediary <init>
Lnet/minecraft/class_2678;<init>(IZLjava/util/Set;IIIZZZLnet/minecraft/class_8589;Z)V
official <init>
Ladz;<init>(IZLjava/util/Set;IIIZZZLagr;Z)V
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named write
Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;write(Lnet/minecraft/network/RegistryByteBuf;)V
intermediary method_55887
Lnet/minecraft/class_2678;method_55887(Lnet/minecraft/class_9129;)V
official a
Ladz;a(Lxa;)V
-
getPacketId
- Specified by:
getPacketId
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector named getPacketId
Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
intermediary method_55846
Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
official a
Lzw;a()Lzy;
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
intermediary method_11567
Lnet/minecraft/class_2678;method_11567(Lnet/minecraft/class_2602;)V
official a
Ladz;a(Laci;)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
-
enforcesSecureChat
public boolean enforcesSecureChat()Returns the value of theenforcesSecureChat
record component.- Returns:
- the value of the
enforcesSecureChat
record component
-