Package net.minecraft.dialog.type
Record Class ConfirmationDialog
java.lang.Object
java.lang.Record
net.minecraft.dialog.type.ConfirmationDialog
- Record Components:
common-yesButton-noButton-
- All Implemented Interfaces:
Dialog,SimpleDialog
public record ConfirmationDialog(DialogCommonData common, DialogActionButtonData yesButton, DialogActionButtonData noButton)
extends Record
implements SimpleDialog
- Mappings:
Namespace Name named net/minecraft/dialog/type/ConfirmationDialogintermediary net/minecraft/class_11418official arynamed commonintermediary comp_4305official hnamed yesButtonintermediary comp_4306official inamed noButtonintermediary comp_4307official j
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ConfirmationDialog> private final DialogCommonDataThe field for thecommonrecord component.private final DialogActionButtonDataThe field for thenoButtonrecord component.private final DialogActionButtonDataThe field for theyesButtonrecord component.Fields inherited from interface net.minecraft.dialog.type.Dialog
ENTRY_CODEC, ENTRY_LIST_CODEC, ENTRY_PACKET_CODEC, PACKET_CODEC, WIDTH_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionConfirmationDialog(DialogCommonData dialogCommonData, DialogActionButtonData dialogActionButtonData, DialogActionButtonData dialogActionButtonData2) -
Method Summary
Modifier and TypeMethodDescriptioncommon()Returns the value of thecommonrecord component.final booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<ConfirmationDialog> getCodec()final inthashCode()Returns a hash code value for this object.noButton()Returns the value of thenoButtonrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theyesButtonrecord component.
-
Field Details
-
common
The field for thecommonrecord component. -
yesButton
The field for theyesButtonrecord component. -
noButton
The field for thenoButtonrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/dialog/type/ConfirmationDialog;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_60619Lnet/minecraft/class_11418;field_60619:Lcom/mojang/serialization/MapCodec;official aLary;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
ConfirmationDialog
public ConfirmationDialog(DialogCommonData dialogCommonData, DialogActionButtonData dialogActionButtonData, DialogActionButtonData dialogActionButtonData2)
-
-
Method Details
-
getCodec
- Specified by:
getCodecin interfaceDialog- Specified by:
getCodecin interfaceSimpleDialog- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/dialog/type/Dialog;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_71692Lnet/minecraft/class_11419;method_71692()Lcom/mojang/serialization/MapCodec;official aLarz;a()Lcom/mojang/serialization/MapCodec;
-
getCancelAction
- Specified by:
getCancelActionin interfaceDialog- Mappings:
Namespace Name Mixin selector named getCancelActionLnet/minecraft/dialog/type/Dialog;getCancelAction()Ljava/util/Optional;intermediary method_72060Lnet/minecraft/class_11419;method_72060()Ljava/util/Optional;official dLarz;d()Ljava/util/Optional;
-
getButtons
- Specified by:
getButtonsin interfaceSimpleDialog- Mappings:
Namespace Name Mixin selector named getButtonsLnet/minecraft/dialog/type/SimpleDialog;getButtons()Ljava/util/List;intermediary method_71698Lnet/minecraft/class_11430;method_71698()Ljava/util/List;official bLasi;b()Ljava/util/List;
-
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). -
common
Returns the value of thecommonrecord component. -
yesButton
Returns the value of theyesButtonrecord component.- Returns:
- the value of the
yesButtonrecord component
-
noButton
Returns the value of thenoButtonrecord component.- Returns:
- the value of the
noButtonrecord component
-