Package net.minecraft.dialog
Record Class DialogActionButtonData
java.lang.Object
java.lang.Record
net.minecraft.dialog.DialogActionButtonData
- Record Components:
data-action-
public record DialogActionButtonData(DialogButtonData data, Optional<DialogAction> action)
extends Record
- Mappings:
Namespace Name named net/minecraft/dialog/DialogActionButtonDataintermediary net/minecraft/class_11519official arunamed dataintermediary comp_4390official bnamed actionintermediary comp_4391official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<DialogAction> The field for theactionrecord component.static final com.mojang.serialization.Codec<DialogActionButtonData> private final DialogButtonDataThe field for thedatarecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDialogActionButtonData(DialogButtonData dialogButtonData, Optional<DialogAction> optional) -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
data
The field for thedatarecord component. -
action
The field for theactionrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/dialog/DialogActionButtonData;CODEC:Lcom/mojang/serialization/Codec;intermediary field_60961Lnet/minecraft/class_11519;field_60961:Lcom/mojang/serialization/Codec;official aLaru;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
DialogActionButtonData
-
-
Method Details
-
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). -
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-