Class DivinityProvider.DivinityItemType

java.lang.Object
studio.magemonkey.codex.api.items.ItemType
studio.magemonkey.divinity.utils.DivinityProvider.DivinityItemType
Enclosing class:
DivinityProvider

public static class DivinityProvider.DivinityItemType extends studio.magemonkey.codex.api.items.ItemType
  • Constructor Summary

    Constructors
    Constructor
    Description
    DivinityItemType(ModuleItem moduleItem, int level, studio.magemonkey.codex.api.items.ItemType material)
    Constructs a new DivinityItemType.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.inventory.ItemStack
     
    studio.magemonkey.codex.api.items.providers.ICodexItemProvider.Category
     
     
     
    boolean
    isInstance(org.bukkit.inventory.ItemStack itemStack)
     

    Methods inherited from class studio.magemonkey.codex.api.items.ItemType

    equals, getNamespacedID, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DivinityItemType

      public DivinityItemType(ModuleItem moduleItem, int level, @Nullable studio.magemonkey.codex.api.items.ItemType material)
      Constructs a new DivinityItemType. The level parameter is only used for LeveledItems and is ignored for other types of items.
      Parameters:
      moduleItem - The module item
      level - The level of the item, use -1 for a random level.
      material - The material of the item, or null if none
  • Method Details

    • getNamespace

      public String getNamespace()
      Specified by:
      getNamespace in class studio.magemonkey.codex.api.items.ItemType
    • getID

      public String getID()
      Specified by:
      getID in class studio.magemonkey.codex.api.items.ItemType
    • getCategory

      public studio.magemonkey.codex.api.items.providers.ICodexItemProvider.Category getCategory()
      Specified by:
      getCategory in class studio.magemonkey.codex.api.items.ItemType
    • create

      public org.bukkit.inventory.ItemStack create()
      Specified by:
      create in class studio.magemonkey.codex.api.items.ItemType
    • isInstance

      public boolean isInstance(@Nullable org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      isInstance in class studio.magemonkey.codex.api.items.ItemType