Class ItemBuilder
- java.lang.Object
-
- me.syncwrld.booter.minecraft.tool.item.ItemBuilder
-
public class ItemBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ItemBuilder(org.bukkit.inventory.ItemStack is)
ItemBuilder(org.bukkit.Material m)
ItemBuilder(org.bukkit.Material m, int quantia)
ItemBuilder(org.bukkit.Material m, int quantia, byte durabilidade)
ItemBuilder(org.bukkit.Material m, int quantia, int durabilidade)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ItemBuilder
addEnchant(org.bukkit.enchantments.Enchantment ench, int level)
ItemBuilder
addEnchantments(java.util.Map<org.bukkit.enchantments.Enchantment,java.lang.Integer> enchantments)
ItemBuilder
addItemFlag(org.bukkit.inventory.ItemFlag flag)
ItemBuilder
addLoreLine(java.lang.String linha)
ItemBuilder
addLoreLine(java.lang.String linha, int pos)
ItemBuilder
addLores(java.util.List<java.lang.String> linha)
ItemBuilder
addUnsafeEnchantment(org.bukkit.enchantments.Enchantment ench, int level)
ItemBuilder
clone()
org.bukkit.inventory.ItemStack
create()
ItemBuilder
removeEnchantment(org.bukkit.enchantments.Enchantment ench)
ItemBuilder
removeLoreLine(int index)
ItemBuilder
removeLoreLine(java.lang.String linha)
ItemBuilder
setAmount(int amount)
ItemBuilder
setDurability(int durabilidade)
ItemBuilder
setDurability(short durabilidade)
ItemBuilder
setDyeColor(org.bukkit.DyeColor cor)
ItemBuilder
setInfinityDurability()
ItemBuilder
setLeatherArmorColor(org.bukkit.Color cor)
ItemBuilder
setLore(java.lang.String... lore)
ItemBuilder
setLore(java.util.List<java.lang.String> lore)
ItemBuilder
setName(java.lang.String nome)
ItemBuilder
setSkullOwner(java.lang.String dono)
ItemBuilder
setWoolColor(org.bukkit.DyeColor cor)
Deprecated.
-
-
-
Constructor Detail
-
ItemBuilder
public ItemBuilder(org.bukkit.Material m)
-
ItemBuilder
public ItemBuilder(org.bukkit.inventory.ItemStack is)
-
ItemBuilder
public ItemBuilder(org.bukkit.Material m, int quantia)
-
ItemBuilder
public ItemBuilder(org.bukkit.Material m, int quantia, byte durabilidade)
-
ItemBuilder
public ItemBuilder(org.bukkit.Material m, int quantia, int durabilidade)
-
-
Method Detail
-
clone
public ItemBuilder clone()
- Overrides:
clone
in classjava.lang.Object
-
setDurability
public ItemBuilder setDurability(short durabilidade)
-
setAmount
public ItemBuilder setAmount(int amount)
-
setDurability
public ItemBuilder setDurability(int durabilidade)
-
setName
public ItemBuilder setName(java.lang.String nome)
-
addUnsafeEnchantment
public ItemBuilder addUnsafeEnchantment(org.bukkit.enchantments.Enchantment ench, int level)
-
removeEnchantment
public ItemBuilder removeEnchantment(org.bukkit.enchantments.Enchantment ench)
-
setSkullOwner
public ItemBuilder setSkullOwner(java.lang.String dono)
-
addEnchant
public ItemBuilder addEnchant(org.bukkit.enchantments.Enchantment ench, int level)
-
addEnchantments
public ItemBuilder addEnchantments(java.util.Map<org.bukkit.enchantments.Enchantment,java.lang.Integer> enchantments)
-
setInfinityDurability
public ItemBuilder setInfinityDurability()
-
addItemFlag
public ItemBuilder addItemFlag(org.bukkit.inventory.ItemFlag flag)
-
setLore
public ItemBuilder setLore(java.lang.String... lore)
-
setLore
public ItemBuilder setLore(java.util.List<java.lang.String> lore)
-
removeLoreLine
public ItemBuilder removeLoreLine(java.lang.String linha)
-
removeLoreLine
public ItemBuilder removeLoreLine(int index)
-
addLoreLine
public ItemBuilder addLoreLine(java.lang.String linha)
-
addLores
public ItemBuilder addLores(java.util.List<java.lang.String> linha)
-
addLoreLine
public ItemBuilder addLoreLine(java.lang.String linha, int pos)
-
setDyeColor
public ItemBuilder setDyeColor(org.bukkit.DyeColor cor)
-
setWoolColor
@Deprecated public ItemBuilder setWoolColor(org.bukkit.DyeColor cor)
Deprecated.
-
setLeatherArmorColor
public ItemBuilder setLeatherArmorColor(org.bukkit.Color cor)
-
create
public org.bukkit.inventory.ItemStack create()
-
-