Record Class ConfirmationDialog
java.lang.Object
java.lang.Record
fr.fidorial.dialog.ConfirmationDialog
- Record Components:
base- the shared title, contents and behaviouryes- the button for the positive outcomeno- the button for the negative outcome
- All Implemented Interfaces:
Dialog, DialogDefinition, DialogLike
public record ConfirmationDialog(DialogBase base, DialogActionButton yes, DialogActionButton no)
extends Record
implements DialogDefinition
A dialog with two buttons in its footer.
- Since:
- 0.1.0
- Since Minecraft:
- 1.21.6
-
Constructor Summary
ConstructorsConstructorDescriptionConfirmationDialog(DialogBase base, DialogActionButton yes, DialogActionButton no) Creates an instance of aConfirmationDialogrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbase()Returns the value of thebaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.no()Returns the value of thenorecord component.final StringtoString()Returns a string representation of this record class.yes()Returns the value of theyesrecord component.
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
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). -
base
Returns the value of thebaserecord component.- Specified by:
basein interfaceDialogDefinition- Returns:
- the value of the
baserecord component
-
yes
-
no
-