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 adnintermediary net/minecraft/class_2724named net/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacketofficial eintermediary comp_1728named commonPlayerSpawnInfoofficial fintermediary comp_1729named flag
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<RegistryByteBuf, PlayerRespawnS2CPacket> private final CommonPlayerSpawnInfoThe field for thecommonPlayerSpawnInforecord component.private final byteThe field for theflagrecord component.static final bytestatic final bytestatic final byte -
Constructor Summary
ConstructorsModifierConstructorDescriptionPlayerRespawnS2CPacket(CommonPlayerSpawnInfo commonPlayerSpawnInfo, byte byte2) privatePlayerRespawnS2CPacket(RegistryByteBuf registryByteBuf) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) Returns the value of thecommonPlayerSpawnInforecord component.final booleanIndicates whether some other object is "equal to" this one.byteflag()Returns the value of theflagrecord component.booleanhasFlag(byte flag) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.private voidwrite(RegistryByteBuf registryByteBuf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
commonPlayerSpawnInfo
The field for thecommonPlayerSpawnInforecord component. -
flag
private final byte flagThe field for theflagrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLadn;a:Lyg;intermediary field_47962Lnet/minecraft/class_2724;field_47962:Lnet/minecraft/class_9139;named CODECLnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
KEEP_ATTRIBUTES
public static final byte KEEP_ATTRIBUTES- See Also:
- Mappings:
Namespace Name Mixin selector official bLadn;b:Bintermediary field_41730Lnet/minecraft/class_2724;field_41730:Bnamed KEEP_ATTRIBUTESLnet/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 cLadn;c:Bintermediary field_41731Lnet/minecraft/class_2724;field_41731:Bnamed KEEP_TRACKED_DATALnet/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 dLadn;d:Bintermediary field_41732Lnet/minecraft/class_2724;field_41732:Bnamed KEEP_ALLLnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;KEEP_ALL:B
-
-
Constructor Details
-
PlayerRespawnS2CPacket
-
PlayerRespawnS2CPacket
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector official aLadn;a(Lvt;)Vintermediary method_55909Lnet/minecraft/class_2724;method_55909(Lnet/minecraft/class_9129;)Vnamed writeLnet/minecraft/network/packet/s2c/play/PlayerRespawnS2CPacket;write(Lnet/minecraft/network/RegistryByteBuf;)V
-
getPacketId
- Specified by:
getPacketIdin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLyp;a()Lyr;intermediary method_55846Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;named getPacketIdLnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLadn;a(Laba;)Vintermediary method_11782Lnet/minecraft/class_2724;method_11782(Lnet/minecraft/class_2602;)Vnamed applyLnet/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 aLadn;a(B)Zintermediary method_48016Lnet/minecraft/class_2724;method_48016(B)Znamed hasFlagLnet/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 thecommonPlayerSpawnInforecord component.- Returns:
- the value of the
commonPlayerSpawnInforecord component
-
flag
public byte flag()Returns the value of theflagrecord component.- Returns:
- the value of the
flagrecord component
-