Enum Class SlotIterator.Type

java.lang.Object
java.lang.Enum<SlotIterator.Type>
dev.aurelium.slate.inv.content.SlotIterator.Type
All Implemented Interfaces:
Serializable, Comparable<SlotIterator.Type>, Constable
Enclosing interface:
SlotIterator

public static enum SlotIterator.Type extends Enum<SlotIterator.Type>
The iterate type of the inventory.
  • Enum Constant Details

    • HORIZONTAL

      public static final SlotIterator.Type 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

      public static final SlotIterator.Type 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

      public static SlotIterator.Type[] 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

      public static SlotIterator.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null