Record Class TestInstanceBlockStatusS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.TestInstanceBlockStatusS2CPacket
- Record Components:
status
-size
-
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public record TestInstanceBlockStatusS2CPacket(Text status, Optional<Vec3i> size)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name named net/minecraft/network/packet/s2c/play/TestInstanceBlockStatusS2CPacket
intermediary net/minecraft/class_10614
official ago
named status
intermediary comp_3511
official b
named size
intermediary comp_3512
official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec
<RegistryByteBuf, TestInstanceBlockStatusS2CPacket> The field for thesize
record component.private final Text
The field for thestatus
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientPlayPacketListener clientPlayPacketListener) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.size()
Returns the value of thesize
record component.status()
Returns the value of thestatus
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
-
status
The field for thestatus
record component. -
size
The field for thesize
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/network/packet/s2c/play/TestInstanceBlockStatusS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_55914
Lnet/minecraft/class_10614;field_55914:Lnet/minecraft/class_9139;
official a
Lago;a:Lze;
-
-
Constructor Details
-
Method Details
-
getPacketType
- Specified by:
getPacketType
in interfacePacket<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
Lzo;a()Lzq;
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/network/packet/s2c/play/TestInstanceBlockStatusS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
intermediary method_66580
Lnet/minecraft/class_10614;method_66580(Lnet/minecraft/class_2602;)V
official a
Lago;a(Lacf;)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)
. -
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
size
Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-