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/DebugGameTestAddMarkerCustomPayloadintermediary net/minecraft/class_8714official aadnamed posintermediary comp_1683official cnamed colorintermediary comp_1684official dnamed textintermediary comp_1685official enamed durationMsintermediary comp_1686official 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
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<PacketByteBuf, DebugGameTestAddMarkerCustomPayload> private final intThe field for thecolorrecord component.private final intThe field for thedurationMsrecord component.static final CustomPayload.Id<DebugGameTestAddMarkerCustomPayload> private final BlockPosThe field for theposrecord component.private final StringThe field for thetextrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDebugGameTestAddMarkerCustomPayload(BlockPos blockPos, int int2, String string, int int3) -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.intReturns the value of thedurationMsrecord component.final booleanIndicates whether some other object is "equal to" this one.getId()final inthashCode()Returns a hash code value for this object.pos()Returns the value of theposrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.private voidwrite(PacketByteBuf buf)
-
Field Details
-
pos
The field for theposrecord component. -
color
private final int colorThe field for thecolorrecord component. -
text
The field for thetextrecord component. -
durationMs
private final int durationMsThe field for thedurationMsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/network/packet/s2c/custom/DebugGameTestAddMarkerCustomPayload;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_48664Lnet/minecraft/class_8714;field_48664:Lnet/minecraft/class_9139;official aLaad;a:Lyn;
-
ID
- Mappings:
Namespace Name Mixin selector named IDLnet/minecraft/network/packet/s2c/custom/DebugGameTestAddMarkerCustomPayload;ID:Lnet/minecraft/network/packet/CustomPayload$Id;intermediary field_48665Lnet/minecraft/class_8714;field_48665:Lnet/minecraft/class_8710$class_9154;official bLaad;b:Lzz$b;
-
-
Constructor Details
-
DebugGameTestAddMarkerCustomPayload
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/network/packet/s2c/custom/DebugGameTestAddMarkerCustomPayload;<init>(Lnet/minecraft/network/PacketByteBuf;)Vintermediary <init>Lnet/minecraft/class_8714;<init>(Lnet/minecraft/class_2540;)Vofficial <init>Laad;<init>(Lvl;)V
-
DebugGameTestAddMarkerCustomPayload
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named writeLnet/minecraft/network/packet/s2c/custom/DebugGameTestAddMarkerCustomPayload;write(Lnet/minecraft/network/PacketByteBuf;)Vintermediary method_56495Lnet/minecraft/class_8714;method_56495(Lnet/minecraft/class_2540;)Vofficial aLaad;a(Lvl;)V
-
getId
- Specified by:
getIdin interfaceCustomPayload- Mappings:
Namespace Name Mixin selector named getIdLnet/minecraft/network/packet/CustomPayload;getId()Lnet/minecraft/network/packet/CustomPayload$Id;intermediary method_56479Lnet/minecraft/class_8710;method_56479()Lnet/minecraft/class_8710$class_9154;official aLzz;a()Lzz$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 theposrecord component.- Returns:
- the value of the
posrecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
durationMs
public int durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-