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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDecoratedContents(String content) DecoratedContents(String string, Text decorated) 
- 
Method SummaryModifier 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;)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- 
isDecoratedpublic 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
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
plainReturns the value of theplainrecord component.- Returns:
- the value of the plainrecord component
 
- 
decoratedReturns the value of thedecoratedrecord component.- Returns:
- the value of the decoratedrecord component
 
 
-