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-
- portalCooldown-
- 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, int portalCooldown)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
- Namespace - Name - official - wi- 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- official - r- intermediary - comp_1532- named - portalCooldown
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thedebugWorldrecord component.private final RegistryKey<World>The field for thedimensionIdrecord component.private final Set<RegistryKey<World>>The field for thedimensionIdsrecord component.private final RegistryKey<DimensionType>The field for thedimensionTyperecord component.private final booleanThe field for theflatWorldrecord component.private final GameModeThe field for thegameModerecord component.private final booleanThe field for thehardcorerecord component.The field for thelastDeathLocationrecord component.private final intThe field for themaxPlayersrecord component.private final intThe field for theplayerEntityIdrecord component.private final intThe field for theportalCooldownrecord component.The field for thepreviousGameModerecord component.private final booleanThe field for thereducedDebugInforecord component.private static final RegistryOps<NbtElement>private final DynamicRegistryManager.ImmutableThe field for theregistryManagerrecord component.private final longThe field for thesha256Seedrecord component.private final booleanThe field for theshowDeathScreenrecord component.private final intThe field for thesimulationDistancerecord component.private final intThe field for theviewDistancerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionGameJoinS2CPacket(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, int int3) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) booleanReturns the value of thedebugWorldrecord component.Returns the value of thedimensionIdrecord component.Returns the value of thedimensionIdsrecord component.Returns the value of thedimensionTyperecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theflatWorldrecord component.gameMode()Returns the value of thegameModerecord component.booleanhardcore()Returns the value of thehardcorerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelastDeathLocationrecord component.intReturns the value of themaxPlayersrecord component.intReturns the value of theplayerEntityIdrecord component.intReturns the value of theportalCooldownrecord component.Returns the value of thepreviousGameModerecord component.booleanReturns the value of thereducedDebugInforecord component.Returns the value of theregistryManagerrecord component.longReturns the value of thesha256Seedrecord 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.voidwrite(PacketByteBuf buf) Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.PacketisWritingErrorSkippable
- 
Field Details- 
playerEntityIdprivate final int playerEntityIdThe field for theplayerEntityIdrecord component.
- 
hardcoreprivate final boolean hardcoreThe field for thehardcorerecord component.
- 
gameModeThe field for thegameModerecord component.
- 
previousGameModeThe field for thepreviousGameModerecord component.
- 
dimensionIdsThe field for thedimensionIdsrecord component.
- 
registryManagerThe field for theregistryManagerrecord component.
- 
dimensionTypeThe field for thedimensionTyperecord component.
- 
dimensionIdThe field for thedimensionIdrecord component.
- 
sha256Seedprivate final long sha256SeedThe field for thesha256Seedrecord 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.
- 
debugWorldprivate final boolean debugWorldThe field for thedebugWorldrecord component.
- 
flatWorldprivate final boolean flatWorldThe field for theflatWorldrecord component.
- 
lastDeathLocationThe field for thelastDeathLocationrecord component.
- 
portalCooldownprivate final int portalCooldownThe field for theportalCooldownrecord component.
- 
REGISTRY_OPS- Mappings:
- Namespace - Name - Mixin selector - official - s- Lwi;s:Laco;- intermediary - field_42104- Lnet/minecraft/class_2678;field_42104:Lnet/minecraft/class_6903;- named - REGISTRY_OPS- Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;REGISTRY_OPS:Lnet/minecraft/registry/RegistryOps;
 
 
- 
- 
Constructor Details- 
GameJoinS2CPacket- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lwi;<init>(Lsf;)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
 
- 
GameJoinS2CPacketpublic 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, int int3) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lwi;<init>(IZLcmj;Lcmj;Ljava/util/Set;Lhs$b;Lacp;Lacp;JIIIZZZZLjava/util/Optional;I)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;I)V- named - <init>- Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;<init>(IZLnet/minecraft/world/GameMode;Lnet/minecraft/world/GameMode;Ljava/util/Set;Lnet/minecraft/registry/DynamicRegistryManager$Immutable;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/registry/RegistryKey;JIIIZZZZLjava/util/Optional;I)V
 
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- Packet<ClientPlayPacketListener>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Luo;a(Lsf;)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:
- applyin interface- Packet<ClientPlayPacketListener>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lwi;a(Lur;)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
 
- 
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
 
- 
gameModeReturns the value of thegameModerecord component.- Returns:
- the value of the gameModerecord component
 
- 
previousGameModeReturns the value of thepreviousGameModerecord component.- Returns:
- the value of the previousGameModerecord component
 
- 
dimensionIdsReturns the value of thedimensionIdsrecord component.- Returns:
- the value of the dimensionIdsrecord component
 
- 
registryManagerReturns the value of theregistryManagerrecord component.- Returns:
- the value of the registryManagerrecord component
 
- 
dimensionTypeReturns the value of thedimensionTyperecord component.- Returns:
- the value of the dimensionTyperecord component
 
- 
dimensionIdReturns the value of thedimensionIdrecord component.- Returns:
- the value of the dimensionIdrecord component
 
- 
sha256Seedpublic long sha256Seed()Returns the value of thesha256Seedrecord component.- Returns:
- the value of the sha256Seedrecord 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
 
- 
debugWorldpublic boolean debugWorld()Returns the value of thedebugWorldrecord component.- Returns:
- the value of the debugWorldrecord component
 
- 
flatWorldpublic boolean flatWorld()Returns the value of theflatWorldrecord component.- Returns:
- the value of the flatWorldrecord component
 
- 
lastDeathLocationReturns the value of thelastDeathLocationrecord component.- Returns:
- the value of the lastDeathLocationrecord component
 
- 
portalCooldownpublic int portalCooldown()Returns the value of theportalCooldownrecord component.- Returns:
- the value of the portalCooldownrecord component
 
 
-