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 -
All Implemented Interfaces:
Packet

public record GameJoinS2CPacket(int playerEntityId, boolean hardcore, GameMode gameMode, @Nullable GameMode previousGameMode, Set<RegistryKey<World>> dimensionIds, DynamicRegistryManager.Impl registryManager, DimensionType dimensionType, RegistryKey<World> dimensionId, long sha256Seed, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean showDeathScreen, boolean debugWorld, boolean flatWorld) extends Record implements Packet
Mappings:
Namespace Name
official sd
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
  • Field Details

    • playerEntityId

      private final int playerEntityId
      The field for the playerEntityId record component.
    • hardcore

      private final boolean hardcore
      The field for the hardcore record component.
    • gameMode

      private final GameMode gameMode
      The field for the gameMode record component.
    • previousGameMode

      @Nullable private final @Nullable GameMode previousGameMode
      The field for the previousGameMode record component.
    • dimensionIds

      private final Set<RegistryKey<World>> dimensionIds
      The field for the dimensionIds record component.
    • registryManager

      private final DynamicRegistryManager.Impl registryManager
      The field for the registryManager record component.
    • dimensionType

      private final DimensionType dimensionType
      The field for the dimensionType record component.
    • dimensionId

      private final RegistryKey<World> dimensionId
      The field for the dimensionId record component.
    • sha256Seed

      private final long sha256Seed
      The field for the sha256Seed record component.
    • maxPlayers

      private final int maxPlayers
      The field for the maxPlayers record component.
    • viewDistance

      private final int viewDistance
      The field for the viewDistance record component.
    • simulationDistance

      private final int simulationDistance
      The field for the simulationDistance record component.
    • reducedDebugInfo

      private final boolean reducedDebugInfo
      The field for the reducedDebugInfo record component.
    • showDeathScreen

      private final boolean showDeathScreen
      The field for the showDeathScreen record component.
    • debugWorld

      private final boolean debugWorld
      The field for the debugWorld record component.
    • flatWorld

      private final boolean flatWorld
      The field for the flatWorld record component.
  • Constructor Details

    • GameJoinS2CPacket

      public GameJoinS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lsd;<init>(Lph;)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, GameMode previousGameMode, @Nullable @Nullable GameMode gameMode, Set<RegistryKey<World>> set, DynamicRegistryManager.Impl impl, DimensionType dimensionType, RegistryKey<World> registryKey, long long2, int maxPlayers, int chunkLoadDistance, int int2, boolean bool2, boolean bool3, boolean bool4, boolean bool5)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lsd;<init>(IZLbzt;Lbzt;Ljava/util/Set;Lgy$b;Lcqy;Lya;JIIIZZZZ)V
      intermediary <init> Lnet/minecraft/class_2678;<init>(IZLnet/minecraft/class_1934;Lnet/minecraft/class_1934;Ljava/util/Set;Lnet/minecraft/class_5455$class_5457;Lnet/minecraft/class_2874;Lnet/minecraft/class_5321;JIIIZZZZ)V
      named <init> Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;<init>(IZLnet/minecraft/world/GameMode;Lnet/minecraft/world/GameMode;Ljava/util/Set;Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;Lnet/minecraft/world/dimension/DimensionType;Lnet/minecraft/util/registry/RegistryKey;JIIIZZZZ)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet
      Mappings:
      Namespace Name Mixin selector
      official a Lql;a(Lph;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Mappings:
      Namespace Name Mixin selector
      official a Lsd;a(Lqo;)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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • playerEntityId

      public int playerEntityId()
      Returns the value of the playerEntityId record component.
      Returns:
      the value of the playerEntityId record component
    • hardcore

      public boolean hardcore()
      Returns the value of the hardcore record component.
      Returns:
      the value of the hardcore record component
    • gameMode

      public GameMode gameMode()
      Returns the value of the gameMode record component.
      Returns:
      the value of the gameMode record component
    • previousGameMode

      @Nullable public @Nullable GameMode previousGameMode()
      Returns the value of the previousGameMode record component.
      Returns:
      the value of the previousGameMode record component
    • dimensionIds

      public Set<RegistryKey<World>> dimensionIds()
      Returns the value of the dimensionIds record component.
      Returns:
      the value of the dimensionIds record component
    • registryManager

      public DynamicRegistryManager.Impl registryManager()
      Returns the value of the registryManager record component.
      Returns:
      the value of the registryManager record component
    • dimensionType

      public DimensionType dimensionType()
      Returns the value of the dimensionType record component.
      Returns:
      the value of the dimensionType record component
    • dimensionId

      public RegistryKey<World> dimensionId()
      Returns the value of the dimensionId record component.
      Returns:
      the value of the dimensionId record component
    • sha256Seed

      public long sha256Seed()
      Returns the value of the sha256Seed record component.
      Returns:
      the value of the sha256Seed record component
    • maxPlayers

      public int maxPlayers()
      Returns the value of the maxPlayers record component.
      Returns:
      the value of the maxPlayers record component
    • viewDistance

      public int viewDistance()
      Returns the value of the viewDistance record component.
      Returns:
      the value of the viewDistance record component
    • simulationDistance

      public int simulationDistance()
      Returns the value of the simulationDistance record component.
      Returns:
      the value of the simulationDistance record component
    • reducedDebugInfo

      public boolean reducedDebugInfo()
      Returns the value of the reducedDebugInfo record component.
      Returns:
      the value of the reducedDebugInfo record component
    • showDeathScreen

      public boolean showDeathScreen()
      Returns the value of the showDeathScreen record component.
      Returns:
      the value of the showDeathScreen record component
    • debugWorld

      public boolean debugWorld()
      Returns the value of the debugWorld record component.
      Returns:
      the value of the debugWorld record component
    • flatWorld

      public boolean flatWorld()
      Returns the value of the flatWorld record component.
      Returns:
      the value of the flatWorld record component