Package com.ultikits.ultitools.entities
Enum Class Buttons
- All Implemented Interfaces:
Serializable,Comparable<Buttons>,java.lang.constant.Constable
The enum Buttons.
Uses lazy initialization to avoid calling UltiTools.getInstance() during class loading, which allows for proper testing and prevents NullPointerException when the plugin is not initialized.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStackGet item stack item stack.getName()Get name string.static ButtonsReturns the enum constant of this class with the specified name.static Buttons[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PREVIOUS
Previous buttons. -
NEXT
Next buttons. -
BACK
Back buttons. -
QUIT
Quit buttons. -
OK
Ok buttons. -
CANCEL
Cancel buttons.
-
-
Field Details
-
nameKey
The i18n key for the button name. -
itemStackSupplier
The supplier for lazy initialization of ItemStack. -
cachedName
Cached translated name. -
cachedItemStack
private org.bukkit.inventory.ItemStack cachedItemStackCached ItemStack.
-
-
Constructor Details
-
Buttons
-
-
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
-
getName
Get name string.- Returns:
- Button 's name 按钮名称
-
getItemStack
public org.bukkit.inventory.ItemStack getItemStack()Get item stack item stack.- Returns:
- Button 's material 按钮材质
-