Package de.clickism.clickgui.menu
Enum Class MenuType
- All Implemented Interfaces:
Serializable,Comparable<MenuType>,Constable
Represents types/sizes of menus that can be created.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintgetSize()Gets the size of the menu.Gets the inventory supplier for the menu.static MenuTypeReturns the enum constant of this class with the specified name.static MenuType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MENU_9X1
A 9x1 menu. -
MENU_9X2
A 9x2 menu. -
MENU_9X3
A 9x3 menu. -
MENU_9X4
A 9x4 menu. -
MENU_9X5
A 9x5 menu.
-
-
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
-
getSize
public int getSize()Gets the size of the menu.- Returns:
- the size
-
getSupplier
Gets the inventory supplier for the menu.- Returns:
- the supplier
-