Class CustomItem

java.lang.Object
net.gcnt.additionsplus.files.items.CustomItem

public class CustomItem extends Object
  • Constructor Details

    • CustomItem

      public CustomItem(String identifier, String material, int amount, List<String> lore)
    • CustomItem

      public CustomItem(String identifier, int slot, long cooldown, String cooldownMessage, String permission, String noPermissionMsg, List<String> actions, List<String> leftClickActions, List<String> rightClickActions, List<ItemOption> itemOptions, String displayName, String material, byte data, int amount, short durability, List<String> lore, List<org.bukkit.inventory.ItemFlag> itemFlags, HashMap<org.bukkit.enchantments.Enchantment,​Integer> enchantments, boolean unbreakable, int customModelData, String armorColor, String potionType, String potionColor, boolean setExtendedPotion, boolean setUpgradedPotion)
  • Method Details

    • getByName

      public static CustomItem getByName(String name)
    • isExtendedPotion

      public boolean isExtendedPotion()
    • setExtendedPotion

      public void setExtendedPotion(boolean setExtendedPotion)
    • isUpgradedPotion

      public boolean isUpgradedPotion()
    • setUpgradedPotion

      public void setUpgradedPotion(boolean setUpgradedPotion)
    • getPotionColor

      public String getPotionColor()
    • setPotionColor

      public void setPotionColor(String potionColor)
    • getPotionType

      public String getPotionType()
    • setPotionType

      public void setPotionType(String potionType)
    • setItemStack

      public void setItemStack(org.bukkit.inventory.ItemStack itemStack)
    • getName

      public String getName()
    • getSlot

      public int getSlot()
    • setSlot

      public void setSlot(int slot)
    • getCooldown

      public long getCooldown()
    • setCooldown

      public void setCooldown(long cooldown)
    • getCooldownMessage

      public String getCooldownMessage()
    • setCooldownMessage

      public void setCooldownMessage(String cooldownMessage)
    • getPermission

      public String getPermission()
    • setPermission

      public void setPermission(String permission)
    • getNoPermissionMessage

      public String getNoPermissionMessage()
    • setNoPermissionMessage

      public void setNoPermissionMessage(String noPermissionMessage)
    • getActions

      public List<String> getActions()
    • setActions

      public void setActions(List<String> actions)
    • getLeftClickActions

      public List<String> getLeftClickActions()
    • setLeftClickActions

      public void setLeftClickActions(List<String> leftClickActions)
    • getRightClickActions

      public List<String> getRightClickActions()
    • setRightClickActions

      public void setRightClickActions(List<String> rightClickActions)
    • getItemOptions

      public List<ItemOption> getItemOptions()
    • setItemOptions

      public void setItemOptions(List<ItemOption> itemOptions)
    • getDisplayName

      public String getDisplayName()
    • setDisplayName

      public void setDisplayName(String displayName)
    • getMaterial

      public String getMaterial()
    • setMaterial

      public void setMaterial(String material)
    • getData

      public byte getData()
    • setData

      public void setData(byte data)
    • getAmount

      public int getAmount()
    • setAmount

      public void setAmount(int amount)
    • getDurability

      public short getDurability()
    • setDurability

      public void setDurability(short durability)
    • getLore

      public List<String> getLore()
    • setLore

      public void setLore(List<String> lore)
    • getItemFlags

      public List<org.bukkit.inventory.ItemFlag> getItemFlags()
    • setItemFlags

      public void setItemFlags(List<org.bukkit.inventory.ItemFlag> itemFlags)
    • getEnchantments

      public HashMap<org.bukkit.enchantments.Enchantment,​Integer> getEnchantments()
    • setEnchantments

      public void setEnchantments(HashMap<org.bukkit.enchantments.Enchantment,​Integer> enchantments)
    • isUnbreakable

      public boolean isUnbreakable()
    • setUnbreakable

      public void setUnbreakable(boolean unbreakable)
    • getCustomModelData

      public int getCustomModelData()
    • setCustomModelData

      public void setCustomModelData(int customModelData)
    • getArmorColor

      public String getArmorColor()
    • setArmorColor

      public void setArmorColor(String armorColor)
    • giveItem

      public org.bukkit.inventory.ItemStack giveItem(org.bukkit.entity.Player player, boolean give)