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 riintermediary net/minecraft/class_7634named net/minecraft/network/message/DecoratedContentsofficial aintermediary comp_963named plainofficial bintermediary comp_964named decorated
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDecoratedContents(String content) DecoratedContents(String string, Text decorated) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedecoratedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanplain()Returns the value of theplainrecord component.static DecoratedContentsread(PacketByteBuf buf) final StringtoString()Returns a string representation of this record class.static voidwrite(PacketByteBuf buf, DecoratedContents contents)
-
Field Details
-
Constructor Details
-
DecoratedContents
- Mappings:
Namespace Name Mixin selector official <init>Lri;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_7634;<init>(Ljava/lang/String;)Vnamed <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;)Vintermediary <init>Lnet/minecraft/class_7634;<init>(Ljava/lang/String;Lnet/minecraft/class_2561;)Vnamed <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 aLri;a()Zintermediary method_44973Lnet/minecraft/class_7634;method_44973()Znamed isDecoratedLnet/minecraft/network/message/DecoratedContents;isDecorated()Z
-
read
- Mappings:
Namespace Name Mixin selector official aLri;a(Lqx;)Lri;intermediary method_44977Lnet/minecraft/class_7634;method_44977(Lnet/minecraft/class_2540;)Lnet/minecraft/class_7634;named readLnet/minecraft/network/message/DecoratedContents;read(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/message/DecoratedContents;
-
write
- Mappings:
Namespace Name Mixin selector official aLri;a(Lqx;Lri;)Vintermediary method_44978Lnet/minecraft/class_7634;method_44978(Lnet/minecraft/class_2540;Lnet/minecraft/class_7634;)Vnamed writeLnet/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 theplainrecord component.- Returns:
- the value of the
plainrecord component
-
decorated
Returns the value of thedecoratedrecord component.- Returns:
- the value of the
decoratedrecord component
-