Enum Class InventoryOpenerType

java.lang.Object
java.lang.Enum<InventoryOpenerType>
io.github.rysefoxx.inventory.plugin.enums.InventoryOpenerType
All Implemented Interfaces:
Serializable, Comparable<InventoryOpenerType>, Constable

public enum InventoryOpenerType extends Enum<InventoryOpenerType>
All possible inventory types supported by RyseInventory.
  • Enum Constant Details

  • Method Details

    • values

      public static InventoryOpenerType[] 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 InventoryOpenerType 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
    • fromName

      @Nullable public static @Nullable InventoryOpenerType fromName(@NotNull @NotNull String name)
      It takes a string, and returns the enum value that matches the string
      Parameters:
      name - The name of the enum.
      Returns:
      The first InventoryOpenerType that matches the name. Null if there is no such value.