Record Class CustomPayloadS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.common.CustomPayloadS2CPacket
- Record Components:
payload
-
- All Implemented Interfaces:
Packet<ClientCommonPacketListener>
public record CustomPayloadS2CPacket(CustomPayload payload)
extends Record
implements Packet<ClientCommonPacketListener>
- Mappings:
Namespace Name named net/minecraft/network/packet/s2c/common/CustomPayloadS2CPacket
intermediary net/minecraft/class_2658
official aad
named payload
intermediary comp_1646
official c
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PacketCodec
<PacketByteBuf, CustomPayloadS2CPacket> private static final int
private final CustomPayload
The field for thepayload
record component.static final PacketCodec
<RegistryByteBuf, CustomPayloadS2CPacket> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientCommonPacketListener clientCommonPacketListener) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.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
-
payload
The field for thepayload
record component. -
MAX_PAYLOAD_SIZE
private static final int MAX_PAYLOAD_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_PAYLOAD_SIZE
Lnet/minecraft/network/packet/s2c/common/CustomPayloadS2CPacket;MAX_PAYLOAD_SIZE:I
intermediary field_33326
Lnet/minecraft/class_2658;field_33326:I
official d
Laad;d:I
-
PLAY_CODEC
- Mappings:
Namespace Name Mixin selector named PLAY_CODEC
Lnet/minecraft/network/packet/s2c/common/CustomPayloadS2CPacket;PLAY_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_48620
Lnet/minecraft/class_2658;field_48620:Lnet/minecraft/class_9139;
official a
Laad;a:Lzn;
-
CONFIGURATION_CODEC
- Mappings:
Namespace Name Mixin selector named CONFIGURATION_CODEC
Lnet/minecraft/network/packet/s2c/common/CustomPayloadS2CPacket;CONFIGURATION_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_48621
Lnet/minecraft/class_2658;field_48621:Lnet/minecraft/class_9139;
official b
Laad;b:Lzn;
-
-
Constructor Details
-
CustomPayloadS2CPacket
-
-
Method Details
-
getPacketId
- Specified by:
getPacketId
in interfacePacket<ClientCommonPacketListener>
- Mappings:
Namespace Name Mixin selector named getPacketId
Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
intermediary method_55846
Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
official a
Lzw;a()Lzy;
-
apply
- Specified by:
apply
in interfacePacket<ClientCommonPacketListener>
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/network/packet/s2c/common/CustomPayloadS2CPacket;apply(Lnet/minecraft/network/listener/ClientCommonPacketListener;)V
intermediary method_53024
Lnet/minecraft/class_2658;method_53024(Lnet/minecraft/class_8705;)V
official a
Laad;a(Laac;)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)
. -
payload
Returns the value of thepayload
record component.- Returns:
- the value of the
payload
record component
-