Record Class DialogTicket.Callbacks
java.lang.Object
java.lang.Record
com.ultikits.ultitools.ui.dialog.DialogTicket.Callbacks
- Enclosing class:
DialogTicket
private static record DialogTicket.Callbacks(BiConsumer<ButtonRole, @Nullable io.papermc.paper.dialog.DialogResponseView> answer, Runnable interruption)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiConsumer<ButtonRole, @Nullable io.papermc.paper.dialog.DialogResponseView> The field for theanswerrecord component.private final RunnableThe field for theinterruptionrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCallbacks(BiConsumer<ButtonRole, @Nullable io.papermc.paper.dialog.DialogResponseView> answer, Runnable interruption) Creates an instance of aCallbacksrecord class. -
Method Summary
Modifier and TypeMethodDescriptionBiConsumer<ButtonRole, @Nullable io.papermc.paper.dialog.DialogResponseView> answer()Returns the value of theanswerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinterruptionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
answer
The field for theanswerrecord component. -
interruption
The field for theinterruptionrecord component.
-
-
Constructor Details
-
Callbacks
private Callbacks(BiConsumer<ButtonRole, @Nullable io.papermc.paper.dialog.DialogResponseView> answer, Runnable interruption) Creates an instance of aCallbacksrecord class.- Parameters:
answer- the value for theanswerrecord componentinterruption- the value for theinterruptionrecord component
-
-
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). -
answer
Returns the value of theanswerrecord component.- Returns:
- the value of the
answerrecord component
-
interruption
Returns the value of theinterruptionrecord component.- Returns:
- the value of the
interruptionrecord component
-