Record Class PlayerRespawnS2CPacket

java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.PlayerRespawnS2CPacket
Record Components:
commonPlayerSpawnInfo -
flag -
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public record PlayerRespawnS2CPacket(CommonPlayerSpawnInfo commonPlayerSpawnInfo, byte flag) extends Record implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
named net/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket
intermediary net/minecraft/class_2724
official aew
named commonPlayerSpawnInfo
intermediary comp_1728
official e
named flag
intermediary comp_1729
official f
  • Field Details Link icon

    • commonPlayerSpawnInfo Link icon

      private final CommonPlayerSpawnInfo commonPlayerSpawnInfo
      The field for the commonPlayerSpawnInfo record component.
    • flag Link icon

      private final byte flag
      The field for the flag record component.
    • CODEC Link icon

      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_47962 Lnet/minecraft/class_2724;field_47962:Lnet/minecraft/class_9139;
      official a Laew;a:Lzn;
    • KEEP_ATTRIBUTES Link icon

      public static final byte KEEP_ATTRIBUTES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named KEEP_ATTRIBUTES Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;KEEP_ATTRIBUTES:B
      intermediary field_41730 Lnet/minecraft/class_2724;field_41730:B
      official b Laew;b:B
    • KEEP_TRACKED_DATA Link icon

      public static final byte KEEP_TRACKED_DATA
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named KEEP_TRACKED_DATA Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;KEEP_TRACKED_DATA:B
      intermediary field_41731 Lnet/minecraft/class_2724;field_41731:B
      official c Laew;c:B
    • KEEP_ALL Link icon

      public static final byte KEEP_ALL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named KEEP_ALL Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;KEEP_ALL:B
      intermediary field_41732 Lnet/minecraft/class_2724;field_41732:B
      official d Laew;d:B
  • Constructor Details Link icon

    • PlayerRespawnS2CPacket Link icon

      private PlayerRespawnS2CPacket(RegistryByteBuf registryByteBuf)
    • PlayerRespawnS2CPacket Link icon

      public PlayerRespawnS2CPacket(CommonPlayerSpawnInfo commonPlayerSpawnInfo, byte byte2)
  • Method Details Link icon

    • write Link icon

      private void write(RegistryByteBuf registryByteBuf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;write(Lnet/minecraft/network/RegistryByteBuf;)V
      intermediary method_55909 Lnet/minecraft/class_2724;method_55909(Lnet/minecraft/class_9129;)V
      official a Laew;a(Lxa;)V
    • getPacketId Link icon

      public PacketType<PlayerRespawnS2CPacket> 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 Link icon

      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/PlayerRespawnS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
      intermediary method_11782 Lnet/minecraft/class_2724;method_11782(Lnet/minecraft/class_2602;)V
      official a Laew;a(Laci;)V
    • hasFlag Link icon

      public boolean hasFlag(byte flag)
      Mappings:
      Namespace Name Mixin selector
      named hasFlag Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;hasFlag(B)Z
      intermediary method_48016 Lnet/minecraft/class_2724;method_48016(B)Z
      official a Laew;a(B)Z
    • toString Link icon

      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 Link icon

      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 Link icon

      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.
    • commonPlayerSpawnInfo Link icon

      public CommonPlayerSpawnInfo commonPlayerSpawnInfo()
      Returns the value of the commonPlayerSpawnInfo record component.
      Returns:
      the value of the commonPlayerSpawnInfo record component
    • flag Link icon

      public byte flag()
      Returns the value of the flag record component.
      Returns:
      the value of the flag record component