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/PlainMessageDialogBody
intermediary net/minecraft/class_11435
official asn
named contents
intermediary comp_4330
official f
named width
intermediary comp_4331
official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<PlainMessageDialogBody> static final com.mojang.serialization.MapCodec
<PlainMessageDialogBody> private final Text
The field for thecontents
record component.static final int
private final int
The field for thewidth
record component.Fields inherited from interface net.minecraft.dialog.body.DialogBody
LIST_CODEC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontents()
Returns the value of thecontents
record component.final boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec
<PlainMessageDialogBody> final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.int
width()
Returns the value of thewidth
record component.
-
Field Details
-
contents
The field for thecontents
record component. -
width
private final int widthThe field for thewidth
record component. -
DEFAULT_WIDTH
public static final int DEFAULT_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_WIDTH
Lnet/minecraft/dialog/body/PlainMessageDialogBody;DEFAULT_WIDTH:I
intermediary field_60640
Lnet/minecraft/class_11435;field_60640:I
official c
Lasn;c:I
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/dialog/body/PlainMessageDialogBody;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_60641
Lnet/minecraft/class_11435;field_60641:Lcom/mojang/serialization/MapCodec;
official d
Lasn;d:Lcom/mojang/serialization/MapCodec;
-
ALTERNATIVE_CODEC
- Mappings:
Namespace Name Mixin selector named ALTERNATIVE_CODEC
Lnet/minecraft/dialog/body/PlainMessageDialogBody;ALTERNATIVE_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_60642
Lnet/minecraft/class_11435;field_60642:Lcom/mojang/serialization/Codec;
official e
Lasn;e:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
PlainMessageDialogBody
-
-
Method Details
-
getTypeCodec
- Specified by:
getTypeCodec
in interfaceDialogBody
- Mappings:
Namespace Name Mixin selector named getTypeCodec
Lnet/minecraft/dialog/body/DialogBody;getTypeCodec()Lcom/mojang/serialization/MapCodec;
intermediary method_71711
Lnet/minecraft/class_11432;method_71711()Lcom/mojang/serialization/MapCodec;
official a
Lask;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 thecontents
record component.- Returns:
- the value of the
contents
record component
-
width
public int width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-