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 - aee- named - commonPlayerSpawnInfo- intermediary - comp_1728- official - e- named - flag- intermediary - comp_1729- official - f
- 
Field SummaryFieldsModifier 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 SummaryConstructorsModifierConstructorDescriptionPlayerRespawnS2CPacket(CommonPlayerSpawnInfo commonPlayerSpawnInfo, byte byte2) privatePlayerRespawnS2CPacket(RegistryByteBuf registryByteBuf) 
- 
Method SummaryModifier 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.PacketisWritingErrorSkippable, transitionsNetworkState
- 
Field Details- 
commonPlayerSpawnInfoThe field for thecommonPlayerSpawnInforecord component.
- 
flagprivate final byte flagThe field for theflagrecord component.
- 
CODEC- 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- Laee;a:Lyn;
 
- 
KEEP_ATTRIBUTESpublic 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- Laee;b:B
 
- 
KEEP_TRACKED_DATApublic 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- Laee;c:B
 
- 
KEEP_ALLpublic 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- Laee;d:B
 
 
- 
- 
Constructor Details- 
PlayerRespawnS2CPacket
- 
PlayerRespawnS2CPacket
 
- 
- 
Method Details- 
write- 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- Laee;a(Lwa;)V
 
- 
getPacketType- Specified by:
- getPacketTypein interface- Packet<ClientPlayPacketListener>
- Mappings:
- Namespace - Name - Mixin selector - named - getPacketType- Lnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;- intermediary - method_65080- Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;- official - a- Lyw;a()Lyy;
 
- 
apply- Specified by:
- applyin 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- Laee;a(Labl;)V
 
- 
hasFlagpublic 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- Laee;a(B)Z
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
commonPlayerSpawnInfoReturns the value of thecommonPlayerSpawnInforecord component.- Returns:
- the value of the commonPlayerSpawnInforecord component
 
- 
flagpublic byte flag()Returns the value of theflagrecord component.- Returns:
- the value of the flagrecord component
 
 
-