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/CustomClickActionC2SPacketintermediary net/minecraft/class_11411official abnnamed idintermediary comp_4294official bnamed payloadintermediary comp_4295official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<ByteBuf, CustomClickActionC2SPacket> private static final PacketCodec<ByteBuf, Optional<NbtElement>> private final IdentifierThe field for theidrecord component.private final Optional<NbtElement> The field for thepayloadrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCustomClickActionC2SPacket(Identifier identifier, Optional<NbtElement> optional) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ServerCommonPacketListener serverCommonPacketListener) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.payload()Returns the value of thepayloadrecord component.final StringtoString()Returns a string representation of this record class.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
-
id
The field for theidrecord component. -
payload
The field for thepayloadrecord component. -
field_60958
- Mappings:
Namespace Name Mixin selector named field_60958Lnet/minecraft/network/packet/c2s/common/CustomClickActionC2SPacket;field_60958:Lnet/minecraft/network/codec/PacketCodec;intermediary field_60958Lnet/minecraft/class_11411;field_60958:Lnet/minecraft/class_9139;official dLabn;d:Laae;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/network/packet/c2s/common/CustomClickActionC2SPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_60613Lnet/minecraft/class_11411;field_60613:Lnet/minecraft/class_9139;official aLabn;a:Laae;
-
-
Constructor Details
-
CustomClickActionC2SPacket
-
-
Method Details
-
getPacketType
- Specified by:
getPacketTypein interfacePacket<ServerCommonPacketListener>- Mappings:
Namespace Name Mixin selector named getPacketTypeLnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;intermediary method_65080Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;official aLaao;a()Laaq;
-
apply
- Specified by:
applyin interfacePacket<ServerCommonPacketListener>- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/network/packet/c2s/common/CustomClickActionC2SPacket;apply(Lnet/minecraft/network/listener/ServerCommonPacketListener;)Vintermediary method_71678Lnet/minecraft/class_11411;method_71678(Lnet/minecraft/class_8706;)Vofficial aLabn;a(Labl;)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 theidrecord component.- Returns:
- the value of the
idrecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-