Record Class CustomClickActionC2SPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.c2s.common.CustomClickActionC2SPacket
- Record Components:
id
-payload
-
- All Implemented Interfaces:
Packet<ServerCommonPacketListener>
public record CustomClickActionC2SPacket(Identifier id, Optional<NbtElement> payload)
extends Record
implements Packet<ServerCommonPacketListener>
- Mappings:
Namespace Name named net/minecraft/network/packet/c2s/common/CustomClickActionC2SPacket
intermediary net/minecraft/class_11411
official aav
named id
intermediary comp_4294
official b
named payload
intermediary comp_4295
official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec
<ByteBuf, CustomClickActionC2SPacket> private static final PacketCodec
<ByteBuf, Optional<NbtElement>> private final Identifier
The field for theid
record component.private final Optional
<NbtElement> The field for thepayload
record component. -
Constructor Summary
ConstructorsConstructorDescriptionCustomClickActionC2SPacket
(Identifier identifier, Optional<NbtElement> optional) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ServerCommonPacketListener serverCommonPacketListener) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.payload()
Returns the value of thepayload
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
id
The field for theid
record component. -
payload
The field for thepayload
record component. -
field_60958
- Mappings:
Namespace Name Mixin selector named field_60958
Lnet/minecraft/network/packet/c2s/common/CustomClickActionC2SPacket;field_60958:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_60958
Lnet/minecraft/class_11411;field_60958:Lnet/minecraft/class_9139;
official d
Laav;d:Lzm;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/network/packet/c2s/common/CustomClickActionC2SPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_60613
Lnet/minecraft/class_11411;field_60613:Lnet/minecraft/class_9139;
official a
Laav;a:Lzm;
-
-
Constructor Details
-
CustomClickActionC2SPacket
-
-
Method Details
-
getPacketType
- Specified by:
getPacketType
in interfacePacket<ServerCommonPacketListener>
- 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
Lzw;a()Lzy;
-
apply
- Specified by:
apply
in interfacePacket<ServerCommonPacketListener>
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/network/packet/c2s/common/CustomClickActionC2SPacket;apply(Lnet/minecraft/network/listener/ServerCommonPacketListener;)V
intermediary method_71678
Lnet/minecraft/class_11411;method_71678(Lnet/minecraft/class_8706;)V
official a
Laav;a(Laat;)V
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
payload
Returns the value of thepayload
record component.- Returns:
- the value of the
payload
record component
-