Record Class DebugGameTestAddMarkerCustomPayload
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.custom.DebugGameTestAddMarkerCustomPayload
- Record Components:
pos
-color
-text
-durationMs
-
- All Implemented Interfaces:
CustomPayload
public record DebugGameTestAddMarkerCustomPayload(BlockPos pos, int color, String text, int durationMs)
extends Record
implements CustomPayload
- Mappings:
Namespace Name named net/minecraft/network/packet/s2c/custom/DebugGameTestAddMarkerCustomPayload
intermediary net/minecraft/class_8714
official aan
named pos
intermediary comp_1683
official c
named color
intermediary comp_1684
official d
named text
intermediary comp_1685
official e
named durationMs
intermediary comp_1686
official f
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.packet.CustomPayload
CustomPayload.CodecFactory<B extends PacketByteBuf>, CustomPayload.Id<T extends CustomPayload>, CustomPayload.Type<B extends PacketByteBuf,
T extends CustomPayload> -
Field Summary
Modifier and TypeFieldDescriptionstatic final PacketCodec
<PacketByteBuf, DebugGameTestAddMarkerCustomPayload> private final int
The field for thecolor
record component.private final int
The field for thedurationMs
record component.static final CustomPayload.Id
<DebugGameTestAddMarkerCustomPayload> private final BlockPos
The field for thepos
record component.private final String
The field for thetext
record component. -
Constructor Summary
ModifierConstructorDescriptionprivate
DebugGameTestAddMarkerCustomPayload
(BlockPos blockPos, int int2, String string, int int3) -
Method Summary
Modifier and TypeMethodDescriptionint
color()
Returns the value of thecolor
record component.int
Returns the value of thedurationMs
record component.final boolean
Indicates whether some other object is "equal to" this one.getId()
final int
hashCode()
Returns a hash code value for this object.pos()
Returns the value of thepos
record component.text()
Returns the value of thetext
record component.final String
toString()
Returns a string representation of this record class.private void
write
(PacketByteBuf buf)
-
Field Details
-
pos
The field for thepos
record component. -
color
private final int colorThe field for thecolor
record component. -
text
The field for thetext
record component. -
durationMs
private final int durationMsThe field for thedurationMs
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/network/packet/s2c/custom/DebugGameTestAddMarkerCustomPayload;CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_48664
Lnet/minecraft/class_8714;field_48664:Lnet/minecraft/class_9139;
official a
Laan;a:Lyx;
-
ID
- Mappings:
Namespace Name Mixin selector named ID
Lnet/minecraft/network/packet/s2c/custom/DebugGameTestAddMarkerCustomPayload;ID:Lnet/minecraft/network/packet/CustomPayload$Id;
intermediary field_48665
Lnet/minecraft/class_8714;field_48665:Lnet/minecraft/class_8710$class_9154;
official b
Laan;b:Laaj$b;
-
-
Constructor Details
-
DebugGameTestAddMarkerCustomPayload
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/network/packet/s2c/custom/DebugGameTestAddMarkerCustomPayload;<init>(Lnet/minecraft/network/PacketByteBuf;)V
intermediary <init>
Lnet/minecraft/class_8714;<init>(Lnet/minecraft/class_2540;)V
official <init>
Laan;<init>(Lvw;)V
-
DebugGameTestAddMarkerCustomPayload
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named write
Lnet/minecraft/network/packet/s2c/custom/DebugGameTestAddMarkerCustomPayload;write(Lnet/minecraft/network/PacketByteBuf;)V
intermediary method_56495
Lnet/minecraft/class_8714;method_56495(Lnet/minecraft/class_2540;)V
official a
Laan;a(Lvw;)V
-
getId
- Specified by:
getId
in interfaceCustomPayload
- Mappings:
Namespace Name Mixin selector named getId
Lnet/minecraft/network/packet/CustomPayload;getId()Lnet/minecraft/network/packet/CustomPayload$Id;
intermediary method_56479
Lnet/minecraft/class_8710;method_56479()Lnet/minecraft/class_8710$class_9154;
official a
Laaj;a()Laaj$b;
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
color
public int color()Returns the value of thecolor
record component.- Returns:
- the value of the
color
record component
-
text
Returns the value of thetext
record component.- Returns:
- the value of the
text
record component
-
durationMs
public int durationMs()Returns the value of thedurationMs
record component.- Returns:
- the value of the
durationMs
record component
-