Enum Class ItemGroup

java.lang.Object
java.lang.Enum<ItemGroup>
studio.magemonkey.divinity.types.ItemGroup
All Implemented Interfaces:
Serializable, Comparable<ItemGroup>, java.lang.constant.Constable

public enum ItemGroup extends Enum<ItemGroup>
  • Enum Constant Details

  • Method Details

    • values

      public static ItemGroup[] 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 ItemGroup 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
    • getName

      @NotNull public String getName()
    • setName

      public void setName(@NotNull String name)
    • getMaterials

      @NotNull public Set<studio.magemonkey.codex.api.items.ItemType> getMaterials()
    • setMaterials

      public void setMaterials(@NotNull Set<String> mats)
    • isItemOfThis

      public boolean isItemOfThis(@NotNull org.bukkit.inventory.ItemStack item)
    • isItemOfThis

      @Deprecated public boolean isItemOfThis(@NotNull org.bukkit.Material mat)
      Deprecated.
    • isItemOfThis

      public boolean isItemOfThis(@NotNull String mat)
    • getItemGroup

      @Nullable public static ItemGroup getItemGroup(@NotNull org.bukkit.inventory.ItemStack item)
    • getItemGroup

      @Deprecated @Nullable public static ItemGroup getItemGroup(@NotNull org.bukkit.Material material)
      Deprecated.
    • getItemGroup

      @Nullable public static ItemGroup getItemGroup(@NotNull String mat)