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/GameJoinS2CPacketintermediary net/minecraft/class_2678official adlnamed playerEntityIdintermediary comp_88official bnamed hardcoreintermediary comp_89official cnamed dimensionIdsintermediary comp_92official dnamed maxPlayersintermediary comp_97official enamed viewDistanceintermediary comp_98official fnamed simulationDistanceintermediary comp_169official gnamed reducedDebugInfointermediary comp_99official hnamed showDeathScreenintermediary comp_100official inamed doLimitedCraftingintermediary comp_1964official jnamed commonPlayerSpawnInfointermediary comp_1727official knamed enforcesSecureChatintermediary comp_2200official l
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<RegistryByteBuf, GameJoinS2CPacket> private final CommonPlayerSpawnInfoThe field for thecommonPlayerSpawnInforecord component.private final Set<RegistryKey<World>> The field for thedimensionIdsrecord component.private final booleanThe field for thedoLimitedCraftingrecord component.private final booleanThe field for theenforcesSecureChatrecord component.private final booleanThe field for thehardcorerecord component.private final intThe field for themaxPlayersrecord component.private final intThe field for theplayerEntityIdrecord component.private final booleanThe field for thereducedDebugInforecord component.private final booleanThe field for theshowDeathScreenrecord component.private final intThe field for thesimulationDistancerecord component.private final intThe field for theviewDistancerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionGameJoinS2CPacket(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 TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) Returns the value of thecommonPlayerSpawnInforecord component.Returns the value of thedimensionIdsrecord component.booleanReturns the value of thedoLimitedCraftingrecord component.booleanReturns the value of theenforcesSecureChatrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanhardcore()Returns the value of thehardcorerecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxPlayersrecord component.intReturns the value of theplayerEntityIdrecord component.booleanReturns the value of thereducedDebugInforecord 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.private voidwrite(RegistryByteBuf 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, transitionsNetworkState
-
Field Details
-
playerEntityId
private final int playerEntityIdThe field for theplayerEntityIdrecord component. -
hardcore
private final boolean hardcoreThe field for thehardcorerecord component. -
dimensionIds
The field for thedimensionIdsrecord 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. -
doLimitedCrafting
private final boolean doLimitedCraftingThe field for thedoLimitedCraftingrecord component. -
commonPlayerSpawnInfo
The field for thecommonPlayerSpawnInforecord component. -
enforcesSecureChat
private final boolean enforcesSecureChatThe field for theenforcesSecureChatrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_47937Lnet/minecraft/class_2678;field_47937:Lnet/minecraft/class_9139;official aLadl;a:Lyx;
-
-
Constructor Details
-
GameJoinS2CPacket
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;<init>(Lnet/minecraft/network/RegistryByteBuf;)Vintermediary <init>Lnet/minecraft/class_2678;<init>(Lnet/minecraft/class_9129;)Vofficial <init>Ladl;<init>(Lwk;)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)Vintermediary <init>Lnet/minecraft/class_2678;<init>(IZLjava/util/Set;IIIZZZLnet/minecraft/class_8589;Z)Vofficial <init>Ladl;<init>(IZLjava/util/Set;IIIZZZLagd;Z)V
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named writeLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;write(Lnet/minecraft/network/RegistryByteBuf;)Vintermediary method_55887Lnet/minecraft/class_2678;method_55887(Lnet/minecraft/class_9129;)Vofficial aLadl;a(Lwk;)V
-
getPacketId
- Specified by:
getPacketIdin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector named getPacketIdLnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;intermediary method_55846Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;official aLzg;a()Lzi;
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)Vintermediary method_11567Lnet/minecraft/class_2678;method_11567(Lnet/minecraft/class_2602;)Vofficial aLadl;a(Labu;)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
-
dimensionIds
Returns the value of thedimensionIdsrecord component.- Returns:
- the value of the
dimensionIdsrecord 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
-
doLimitedCrafting
public boolean doLimitedCrafting()Returns the value of thedoLimitedCraftingrecord component.- Returns:
- the value of the
doLimitedCraftingrecord component
-
commonPlayerSpawnInfo
Returns the value of thecommonPlayerSpawnInforecord component.- Returns:
- the value of the
commonPlayerSpawnInforecord component
-
enforcesSecureChat
public boolean enforcesSecureChat()Returns the value of theenforcesSecureChatrecord component.- Returns:
- the value of the
enforcesSecureChatrecord component
-