Class ItemFactory

java.lang.Object
nl.mtvehicles.core.infrastructure.helpers.ItemFactory

public class ItemFactory extends Object
Class for an easy creation of items
  • Constructor Details

    • ItemFactory

      public ItemFactory(org.bukkit.Material material)
    • ItemFactory

      public ItemFactory(org.bukkit.inventory.ItemStack itemStack)
    • ItemFactory

      public ItemFactory(org.bukkit.Material material, int amount)
    • ItemFactory

      public ItemFactory(org.bukkit.Material material, int amount, int durability)
  • Method Details

    • clone

      public ItemFactory clone()
      Overrides:
      clone in class Object
    • setDurability

      public ItemFactory setDurability(int durability)
    • setType

      public ItemFactory setType(org.bukkit.Material material)
    • setName

      public ItemFactory setName(String name)
    • setAmount

      public ItemFactory setAmount(int amount)
    • setUnbreakable

      public ItemFactory setUnbreakable(boolean unbreakable)
    • getLore

      public List<String> getLore()
    • setLore

      public ItemFactory setLore(List<String> lore)
    • removeLore

      public ItemFactory removeLore()
    • hideAttributes

      public ItemFactory hideAttributes()
    • addUnsafeEnchantment

      public ItemFactory addUnsafeEnchantment(org.bukkit.enchantments.Enchantment enchantment, int level)
    • removeEnchantment

      public ItemFactory removeEnchantment(org.bukkit.enchantments.Enchantment enchantment)
    • addEnchant

      public ItemFactory addEnchant(org.bukkit.enchantments.Enchantment enchantment, int level)
    • setGlowing

      public ItemFactory setGlowing(boolean glowing)
    • addEnchantGlow

      public ItemFactory addEnchantGlow()
    • addEnchantments

      public ItemFactory addEnchantments(Map<org.bukkit.enchantments.Enchantment,​Integer> enchantments)
    • setLore

      public ItemFactory setLore(String... lore)
    • addLoreLines

      public ItemFactory addLoreLines(List<String> line)
    • setNBT

      public ItemFactory setNBT(String key, String value)
    • removeLoreLine

      public ItemFactory removeLoreLine(String line)
    • removeLoreLine

      public ItemFactory removeLoreLine(int index)
    • addLoreLine

      public ItemFactory addLoreLine(String line)
    • addLoreLine

      public ItemFactory addLoreLine(String line, int pos)
    • setDyeColor

      public ItemFactory setDyeColor(org.bukkit.DyeColor color)
    • setLeatherArmorColor

      public ItemFactory setLeatherArmorColor(org.bukkit.Color color)
    • toItemStack

      public org.bukkit.inventory.ItemStack toItemStack()
    • getSkullOwner

      public String getSkullOwner()
    • setSkullOwner

      public ItemFactory setSkullOwner(String owner)
    • unbreakable

      @Deprecated public ItemFactory unbreakable()
      Deprecated.