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 - add- 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 SummaryFieldsModifier 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 SummaryConstructorsModifierConstructorDescriptionGameJoinS2CPacket(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 SummaryModifier 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.PacketisWritingErrorSkippable, transitionsNetworkState
- 
Field Details- 
playerEntityIdprivate final int playerEntityIdThe field for theplayerEntityIdrecord component.
- 
hardcoreprivate final boolean hardcoreThe field for thehardcorerecord component.
- 
dimensionIdsThe field for thedimensionIdsrecord component.
- 
maxPlayersprivate final int maxPlayersThe field for themaxPlayersrecord component.
- 
viewDistanceprivate final int viewDistanceThe field for theviewDistancerecord component.
- 
simulationDistanceprivate final int simulationDistanceThe field for thesimulationDistancerecord component.
- 
reducedDebugInfoprivate final boolean reducedDebugInfoThe field for thereducedDebugInforecord component.
- 
showDeathScreenprivate final boolean showDeathScreenThe field for theshowDeathScreenrecord component.
- 
doLimitedCraftingprivate final boolean doLimitedCraftingThe field for thedoLimitedCraftingrecord component.
- 
commonPlayerSpawnInfoThe field for thecommonPlayerSpawnInforecord component.
- 
enforcesSecureChatprivate final boolean enforcesSecureChatThe field for theenforcesSecureChatrecord 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- Ladd;a:Lyn;
 
 
- 
- 
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>- Ladd;<init>(Lwa;)V
 
- 
GameJoinS2CPacketpublic 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>- Ladd;<init>(IZLjava/util/Set;IIIZZZLagb;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- Ladd;a(Lwa;)V
 
- 
getPacketType- Specified by:
- getPacketTypein interface- Packet<ClientPlayPacketListener>
- Mappings:
- Namespace - Name - Mixin selector - named - getPacketType- Lnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;- intermediary - method_65080- Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;- official - a- Lyw;a()Lyy;
 
- 
apply- Specified by:
- applyin interface- Packet<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- Ladd;a(Labl;)V
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
playerEntityIdpublic int playerEntityId()Returns the value of theplayerEntityIdrecord component.- Returns:
- the value of the playerEntityIdrecord component
 
- 
hardcorepublic boolean hardcore()Returns the value of thehardcorerecord component.- Returns:
- the value of the hardcorerecord component
 
- 
dimensionIdsReturns the value of thedimensionIdsrecord component.- Returns:
- the value of the dimensionIdsrecord component
 
- 
maxPlayerspublic int maxPlayers()Returns the value of themaxPlayersrecord component.- Returns:
- the value of the maxPlayersrecord component
 
- 
viewDistancepublic int viewDistance()Returns the value of theviewDistancerecord component.- Returns:
- the value of the viewDistancerecord component
 
- 
simulationDistancepublic int simulationDistance()Returns the value of thesimulationDistancerecord component.- Returns:
- the value of the simulationDistancerecord component
 
- 
reducedDebugInfopublic boolean reducedDebugInfo()Returns the value of thereducedDebugInforecord component.- Returns:
- the value of the reducedDebugInforecord component
 
- 
showDeathScreenpublic boolean showDeathScreen()Returns the value of theshowDeathScreenrecord component.- Returns:
- the value of the showDeathScreenrecord component
 
- 
doLimitedCraftingpublic boolean doLimitedCrafting()Returns the value of thedoLimitedCraftingrecord component.- Returns:
- the value of the doLimitedCraftingrecord component
 
- 
commonPlayerSpawnInfoReturns the value of thecommonPlayerSpawnInforecord component.- Returns:
- the value of the commonPlayerSpawnInforecord component
 
- 
enforcesSecureChatpublic boolean enforcesSecureChat()Returns the value of theenforcesSecureChatrecord component.- Returns:
- the value of the enforcesSecureChatrecord component
 
 
-