Package net.minecraft.network.message
Record Class DecoratedContents
java.lang.Object
java.lang.Record
net.minecraft.network.message.DecoratedContents
- Record Components:
plain
-decorated
-
A pair of the decorated message content and its undecorated ("plain") message content.
Note that the two contents can be equal if no decoration is applied.
- Mappings:
Namespace Name official ri
intermediary net/minecraft/class_7634
named net/minecraft/network/message/DecoratedContents
official a
intermediary comp_963
named plain
official b
intermediary comp_964
named decorated
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDecoratedContents
(String content) DecoratedContents
(String string, Text decorated) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedecorated
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
plain()
Returns the value of theplain
record component.static DecoratedContents
read
(PacketByteBuf buf) final String
toString()
Returns a string representation of this record class.static void
write
(PacketByteBuf buf, DecoratedContents contents)
-
Field Details
-
Constructor Details
-
DecoratedContents
- Mappings:
Namespace Name Mixin selector official <init>
Lri;<init>(Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_7634;<init>(Ljava/lang/String;)V
named <init>
Lnet/minecraft/network/message/DecoratedContents;<init>(Ljava/lang/String;)V
-
DecoratedContents
- Mappings:
Namespace Name Mixin selector official <init>
Lri;<init>(Ljava/lang/String;Lrq;)V
intermediary <init>
Lnet/minecraft/class_7634;<init>(Ljava/lang/String;Lnet/minecraft/class_2561;)V
named <init>
Lnet/minecraft/network/message/DecoratedContents;<init>(Ljava/lang/String;Lnet/minecraft/text/Text;)V
-
-
Method Details
-
isDecorated
public boolean isDecorated()- Mappings:
Namespace Name Mixin selector official a
Lri;a()Z
intermediary method_44973
Lnet/minecraft/class_7634;method_44973()Z
named isDecorated
Lnet/minecraft/network/message/DecoratedContents;isDecorated()Z
-
read
- Mappings:
Namespace Name Mixin selector official a
Lri;a(Lqx;)Lri;
intermediary method_44977
Lnet/minecraft/class_7634;method_44977(Lnet/minecraft/class_2540;)Lnet/minecraft/class_7634;
named read
Lnet/minecraft/network/message/DecoratedContents;read(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/message/DecoratedContents;
-
write
- Mappings:
Namespace Name Mixin selector official a
Lri;a(Lqx;Lri;)V
intermediary method_44978
Lnet/minecraft/class_7634;method_44978(Lnet/minecraft/class_2540;Lnet/minecraft/class_7634;)V
named write
Lnet/minecraft/network/message/DecoratedContents;write(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/network/message/DecoratedContents;)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)
. -
plain
Returns the value of theplain
record component.- Returns:
- the value of the
plain
record component
-
decorated
Returns the value of thedecorated
record component.- Returns:
- the value of the
decorated
record component
-