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 adz
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 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.
    • enforcesSecureChat

      private final boolean enforcesSecureChat
      The field for the enforcesSecureChat record component.
    • CODEC

      public static final PacketCodec<RegistryByteBuf,GameJoinS2CPacket> 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 Ladz;a:Lzn;
  • Constructor Details

    • GameJoinS2CPacket

      private GameJoinS2CPacket(RegistryByteBuf buf)
      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> Ladz;<init>(Lxa;)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)V
      intermediary <init> Lnet/minecraft/class_2678;<init>(IZLjava/util/Set;IIIZZZLnet/minecraft/class_8589;Z)V
      official <init> Ladz;<init>(IZLjava/util/Set;IIIZZZLagr;Z)V
  • Method Details

    • write

      private void write(RegistryByteBuf buf)
      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 Ladz;a(Lxa;)V
    • getPacketId

      public PacketType<GameJoinS2CPacket> getPacketId()
      Specified by:
      getPacketId in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketId Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      official a Lzw;a()Lzy;
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in 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 Ladz;a(Laci;)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
    • enforcesSecureChat

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