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 -
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) extends Record implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
official yl
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_92
named dimensionIds
official d
intermediary comp_97
named maxPlayers
official e
intermediary comp_98
named viewDistance
official f
intermediary comp_169
named simulationDistance
official g
intermediary comp_99
named reducedDebugInfo
official h
intermediary comp_100
named showDeathScreen
official i
intermediary comp_1964
named doLimitedCrafting
official j
intermediary comp_1727
named commonPlayerSpawnInfo
  • 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.
    • dimensionIds

      private final Set<RegistryKey<World>> dimensionIds
      The field for the dimensionIds 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.
    • doLimitedCrafting

      private final boolean doLimitedCrafting
      The field for the doLimitedCrafting record component.
    • commonPlayerSpawnInfo

      private final CommonPlayerSpawnInfo commonPlayerSpawnInfo
      The field for the commonPlayerSpawnInfo record component.
  • Constructor Details

    • GameJoinS2CPacket

      public GameJoinS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lyl;<init>(Lso;)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, Set<RegistryKey<World>> set, int int2, int int3, int int4, boolean bool2, boolean bool3, boolean bool4, CommonPlayerSpawnInfo commonPlayerSpawnInfo)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lyl;<init>(IZLjava/util/Set;IIIZZZLaaz;)V
      intermediary <init> Lnet/minecraft/class_2678;<init>(IZLjava/util/Set;IIIZZZLnet/minecraft/class_8589;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;<init>(IZLjava/util/Set;IIIZZZLnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lvd;a(Lso;)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

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lyl;a(Lww;)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
    • dimensionIds

      public Set<RegistryKey<World>> dimensionIds()
      Returns the value of the dimensionIds record component.
      Returns:
      the value of the dimensionIds 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
    • doLimitedCrafting

      public boolean doLimitedCrafting()
      Returns the value of the doLimitedCrafting record component.
      Returns:
      the value of the doLimitedCrafting record component
    • commonPlayerSpawnInfo

      public CommonPlayerSpawnInfo commonPlayerSpawnInfo()
      Returns the value of the commonPlayerSpawnInfo record component.
      Returns:
      the value of the commonPlayerSpawnInfo record component