Record Class SetTestBlockC2SPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.c2s.play.SetTestBlockC2SPacket
- Record Components:
position
-mode
-message
-
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public record SetTestBlockC2SPacket(BlockPos position, TestBlockMode mode, String message)
extends Record
implements Packet<ServerPlayPacketListener>
- Mappings:
Namespace Name named net/minecraft/network/packet/c2s/play/SetTestBlockC2SPacket
intermediary net/minecraft/class_10615
official aix
named position
intermediary comp_3513
official b
named mode
intermediary comp_3514
official c
named message
intermediary comp_3515
official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec
<PacketByteBuf, SetTestBlockC2SPacket> private final String
The field for themessage
record component.private final TestBlockMode
The field for themode
record component.private final BlockPos
The field for theposition
record component. -
Constructor Summary
ConstructorsConstructorDescriptionSetTestBlockC2SPacket
(BlockPos blockPos, TestBlockMode testBlockMode, String string) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ServerPlayPacketListener serverPlayPacketListener) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.message()
Returns the value of themessage
record component.mode()
Returns the value of themode
record component.position()
Returns the value of theposition
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
-
position
The field for theposition
record component. -
mode
The field for themode
record component. -
message
The field for themessage
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/network/packet/c2s/play/SetTestBlockC2SPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_55918
Lnet/minecraft/class_10615;field_55918:Lnet/minecraft/class_9139;
official a
Laix;a:Lze;
-
-
Constructor Details
-
Method Details
-
getPacketType
- Specified by:
getPacketType
in interfacePacket<ServerPlayPacketListener>
- 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
Lzo;a()Lzq;
-
apply
- Specified by:
apply
in interfacePacket<ServerPlayPacketListener>
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/network/packet/c2s/play/SetTestBlockC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
intermediary method_66583
Lnet/minecraft/class_10615;method_66583(Lnet/minecraft/class_2792;)V
official a
Laix;a(Laha;)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)
. -
position
Returns the value of theposition
record component.- Returns:
- the value of the
position
record component
-
mode
Returns the value of themode
record component.- Returns:
- the value of the
mode
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-