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/ConfirmationDialog
intermediary net/minecraft/class_11418
official ars
named common
intermediary comp_4305
official h
named yesButton
intermediary comp_4306
official i
named noButton
intermediary comp_4307
official j
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<ConfirmationDialog> private final DialogCommonData
The field for thecommon
record component.private final DialogActionButtonData
The field for thenoButton
record component.private final DialogActionButtonData
The field for theyesButton
record 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 thecommon
record component.final boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec
<ConfirmationDialog> getCodec()
final int
hashCode()
Returns a hash code value for this object.noButton()
Returns the value of thenoButton
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theyesButton
record component.
-
Field Details
-
common
The field for thecommon
record component. -
yesButton
The field for theyesButton
record component. -
noButton
The field for thenoButton
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/dialog/type/ConfirmationDialog;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_60619
Lnet/minecraft/class_11418;field_60619:Lcom/mojang/serialization/MapCodec;
official a
Lars;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
ConfirmationDialog
public ConfirmationDialog(DialogCommonData dialogCommonData, DialogActionButtonData dialogActionButtonData, DialogActionButtonData dialogActionButtonData2)
-
-
Method Details
-
getCodec
- Specified by:
getCodec
in interfaceDialog
- Specified by:
getCodec
in interfaceSimpleDialog
- Mappings:
Namespace Name Mixin selector named getCodec
Lnet/minecraft/dialog/type/Dialog;getCodec()Lcom/mojang/serialization/MapCodec;
intermediary method_71692
Lnet/minecraft/class_11419;method_71692()Lcom/mojang/serialization/MapCodec;
official a
Lart;a()Lcom/mojang/serialization/MapCodec;
-
getCancelAction
- Specified by:
getCancelAction
in interfaceDialog
- Mappings:
Namespace Name Mixin selector named getCancelAction
Lnet/minecraft/dialog/type/Dialog;getCancelAction()Ljava/util/Optional;
intermediary method_72060
Lnet/minecraft/class_11419;method_72060()Ljava/util/Optional;
official d
Lart;d()Ljava/util/Optional;
-
getButtons
- Specified by:
getButtons
in interfaceSimpleDialog
- Mappings:
Namespace Name Mixin selector named getButtons
Lnet/minecraft/dialog/type/SimpleDialog;getButtons()Ljava/util/List;
intermediary method_71698
Lnet/minecraft/class_11430;method_71698()Ljava/util/List;
official b
Lasc;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 thecommon
record component. -
yesButton
Returns the value of theyesButton
record component.- Returns:
- the value of the
yesButton
record component
-
noButton
Returns the value of thenoButton
record component.- Returns:
- the value of the
noButton
record component
-