Package net.minecraft.dialog.body
Record Class PlainMessageDialogBody
java.lang.Object
java.lang.Record
net.minecraft.dialog.body.PlainMessageDialogBody
- Record Components:
contents-width-
- All Implemented Interfaces:
DialogBody
- Mappings:
Namespace Name named net/minecraft/dialog/body/PlainMessageDialogBodyintermediary net/minecraft/class_11435official astnamed contentsintermediary comp_4330official fnamed widthintermediary comp_4331official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PlainMessageDialogBody> static final com.mojang.serialization.MapCodec<PlainMessageDialogBody> private final TextThe field for thecontentsrecord component.static final intprivate final intThe field for thewidthrecord component.Fields inherited from interface net.minecraft.dialog.body.DialogBody
LIST_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<PlainMessageDialogBody> final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Field Details
-
contents
The field for thecontentsrecord component. -
width
private final int widthThe field for thewidthrecord component. -
DEFAULT_WIDTH
public static final int DEFAULT_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_WIDTHLnet/minecraft/dialog/body/PlainMessageDialogBody;DEFAULT_WIDTH:Iintermediary field_60640Lnet/minecraft/class_11435;field_60640:Iofficial cLast;c:I
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/dialog/body/PlainMessageDialogBody;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_60641Lnet/minecraft/class_11435;field_60641:Lcom/mojang/serialization/MapCodec;official dLast;d:Lcom/mojang/serialization/MapCodec;
-
ALTERNATIVE_CODEC
- Mappings:
Namespace Name Mixin selector named ALTERNATIVE_CODECLnet/minecraft/dialog/body/PlainMessageDialogBody;ALTERNATIVE_CODEC:Lcom/mojang/serialization/Codec;intermediary field_60642Lnet/minecraft/class_11435;field_60642:Lcom/mojang/serialization/Codec;official eLast;e:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
PlainMessageDialogBody
-
-
Method Details
-
getTypeCodec
- Specified by:
getTypeCodecin interfaceDialogBody- Mappings:
Namespace Name Mixin selector named getTypeCodecLnet/minecraft/dialog/body/DialogBody;getTypeCodec()Lcom/mojang/serialization/MapCodec;intermediary method_71711Lnet/minecraft/class_11432;method_71711()Lcom/mojang/serialization/MapCodec;official aLasq;a()Lcom/mojang/serialization/MapCodec;
-
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 '=='. -
contents
Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-