Package dev.aurelium.slate.inv.content
Enum Class SlotIterator.Type
- All Implemented Interfaces:
Serializable,Comparable<SlotIterator.Type>,Constable
- Enclosing interface:
- SlotIterator
The iterate type of the inventory.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIterates horizontally from the left to the right of the inventory, and jump to the next line when the last column is reached.Iterates vertically from the up to the down of the inventory, and jump to the next column when the last line is reached. -
Method Summary
Modifier and TypeMethodDescriptionstatic SlotIterator.TypeReturns the enum constant of this class with the specified name.static SlotIterator.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HORIZONTAL
Iterates horizontally from the left to the right of the inventory, and jump to the next line when the last column is reached. -
VERTICAL
Iterates vertically from the up to the down of the inventory, and jump to the next column when the last line is reached.
-
-
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
-