Enum Class DialogBase.DialogAfterAction
java.lang.Object
java.lang.Enum<DialogBase.DialogAfterAction>
io.papermc.paper.registry.data.dialog.DialogBase.DialogAfterAction
- All Implemented Interfaces:
Serializable
,Comparable<DialogBase.DialogAfterAction>
,Constable
- Enclosing interface:
DialogBase
Actions to take after the dialog is closed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCloses the dialog and returns to the previous non-dialog screen (if any).Does nothing (keeps the current screen open).Replaces dialog with a "waiting for response" screen. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DialogBase.DialogAfterAction
Returns the enum constant of this class with the specified name.static DialogBase.DialogAfterAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLOSE
Closes the dialog and returns to the previous non-dialog screen (if any). -
NONE
Does nothing (keeps the current screen open). -
WAIT_FOR_RESPONSE
Replaces dialog with a "waiting for response" screen.
-
-
Field Details
-
NAMES
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-