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 official abl
intermediary net/minecraft/class_2724
named net/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket
official d
intermediary comp_1728
named commonPlayerSpawnInfo
official e
intermediary comp_1729
named flag
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CommonPlayerSpawnInfo
The field for thecommonPlayerSpawnInfo
record component.private final byte
The field for theflag
record component.static final byte
static final byte
static final byte
-
Constructor Summary
ConstructorDescriptionPlayerRespawnS2CPacket
(CommonPlayerSpawnInfo commonPlayerSpawnInfo, byte byte2) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientPlayPacketListener clientPlayPacketListener) Returns the value of thecommonPlayerSpawnInfo
record component.final boolean
Indicates whether some other object is "equal to" this one.byte
flag()
Returns the value of theflag
record component.boolean
hasFlag
(byte flag) final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.void
write
(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.packet.Packet
getNewNetworkState, isWritingErrorSkippable
-
Field Details
-
commonPlayerSpawnInfo
The field for thecommonPlayerSpawnInfo
record component. -
flag
private final byte flagThe field for theflag
record component. -
KEEP_ATTRIBUTES
public static final byte KEEP_ATTRIBUTES- See Also:
- Mappings:
Namespace Name Mixin selector official a
Labl;a:B
intermediary field_41730
Lnet/minecraft/class_2724;field_41730:B
named KEEP_ATTRIBUTES
Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;KEEP_ATTRIBUTES:B
-
KEEP_TRACKED_DATA
public static final byte KEEP_TRACKED_DATA- See Also:
- Mappings:
Namespace Name Mixin selector official b
Labl;b:B
intermediary field_41731
Lnet/minecraft/class_2724;field_41731:B
named KEEP_TRACKED_DATA
Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;KEEP_TRACKED_DATA:B
-
KEEP_ALL
public static final byte KEEP_ALL- See Also:
- Mappings:
Namespace Name Mixin selector official c
Labl;c:B
intermediary field_41732
Lnet/minecraft/class_2724;field_41732:B
named KEEP_ALL
Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;KEEP_ALL:B
-
-
Constructor Details
-
PlayerRespawnS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Labl;<init>(Lui;)V
intermediary <init>
Lnet/minecraft/class_2724;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
PlayerRespawnS2CPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lxf;a(Lui;)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:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Labl;a(Lza;)V
intermediary method_11782
Lnet/minecraft/class_2724;method_11782(Lnet/minecraft/class_2602;)V
named apply
Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
hasFlag
public boolean hasFlag(byte flag) - Mappings:
Namespace Name Mixin selector official a
Labl;a(B)Z
intermediary method_48016
Lnet/minecraft/class_2724;method_48016(B)Z
named hasFlag
Lnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;hasFlag(B)Z
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
commonPlayerSpawnInfo
Returns the value of thecommonPlayerSpawnInfo
record component.- Returns:
- the value of the
commonPlayerSpawnInfo
record component
-
flag
public byte flag()Returns the value of theflag
record component.- Returns:
- the value of the
flag
record component
-