Class LimitedItem

java.lang.Object
studio.magemonkey.codex.manager.LoadableItem
All Implemented Interfaces:
Tiered
Direct Known Subclasses:
DismantleManager.DismantleItem, ExtractorManager.ExtractorTool, FortifyManager.FortifyItem, IdentifyManager.IdentifyItem, ItemGeneratorManager.GeneratorItem, MagicDustManager.MagicDust, RatedItem, RepairManager.RepairItem, UsableItem

public class LimitedItem extends LeveledItem
  • Field Details

  • Constructor Details

    • LimitedItem

      @Deprecated public LimitedItem(Divinity plugin, String path, QModuleDrop<?> module) throws org.bukkit.configuration.InvalidConfigurationException
      Deprecated.
      Throws:
      org.bukkit.configuration.InvalidConfigurationException
    • LimitedItem

      public LimitedItem(@NotNull Divinity plugin, @NotNull studio.magemonkey.codex.config.api.JYML cfg, @NotNull QModuleDrop<?> module)
  • Method Details

    • getChargesMap

      @NotNull public TreeMap<Integer,Integer> getChargesMap()
    • getCharges

      public final int getCharges(int lvl)
    • create

      @NotNull public final org.bukkit.inventory.ItemStack create(int lvl)
      Overrides:
      create in class LeveledItem
    • build

      @NotNull protected final org.bukkit.inventory.ItemStack build(int lvl)
      Overrides:
      build in class LeveledItem
    • create

      @NotNull public org.bukkit.inventory.ItemStack create(int lvl, int uses)
    • build

      @NotNull protected org.bukkit.inventory.ItemStack build(int lvl, int uses)
    • build

      @NotNull protected org.bukkit.inventory.ItemStack build(@Nullable org.bukkit.inventory.ItemStack item, int lvl, int uses)