Class ItemBuilder


  • public class ItemBuilder
    extends Object
    • Constructor Detail

      • ItemBuilder

        public ItemBuilder​(org.bukkit.Material type)
      • ItemBuilder

        public ItemBuilder​(org.bukkit.Material type,
                           int amount)
      • ItemBuilder

        public ItemBuilder​(org.bukkit.Material type,
                           int amount,
                           short durability)
      • ItemBuilder

        public ItemBuilder​(org.bukkit.Material type,
                           int amount,
                           short durability,
                           String displayName)
      • ItemBuilder

        public ItemBuilder​(org.bukkit.inventory.ItemStack itemStack)
    • Method Detail

      • clone

        public static ItemBuilder clone​(org.bukkit.inventory.ItemStack itemStack)
      • of

        public static ItemBuilder of​(org.bukkit.inventory.ItemStack itemStack)
      • type

        public ItemBuilder type​(org.bukkit.Material type)
      • durability

        public ItemBuilder durability​(short durability)
      • enchants

        public ItemBuilder enchants​(Map<org.bukkit.enchantments.Enchantment,​Integer> enchants)
      • unsafeEnchants

        public ItemBuilder unsafeEnchants​(Map<org.bukkit.enchantments.Enchantment,​Integer> enchants)
      • enchant

        public ItemBuilder enchant​(org.bukkit.enchantments.Enchantment enchantment,
                                   int level)
      • unsafeEnchant

        public ItemBuilder unsafeEnchant​(org.bukkit.enchantments.Enchantment enchantment,
                                         int level)
      • flags

        public ItemBuilder flags​(org.bukkit.inventory.ItemFlag... flags)
      • flag

        public ItemBuilder flag​(org.bukkit.inventory.ItemFlag flag)
      • unbreakable

        public ItemBuilder unbreakable​(boolean unbreakable)
      • hideAll

        public ItemBuilder hideAll​(boolean hide)
      • getCustomModelData

        public Integer getCustomModelData()
      • hasCustomModelData

        public Boolean hasCustomModelData()
      • setGlowing

        public ItemBuilder setGlowing​(boolean glowing)
      • asItemStack

        public org.bukkit.inventory.ItemStack asItemStack()