public class ItemStackBuilder extends Object
ItemStackBuilder
Modifier and Type | Field and Description |
---|---|
protected int |
amount |
protected Map<org.bukkit.enchantments.Enchantment,Integer> |
enchantments |
protected List<String> |
lore |
protected static String |
lorePrefix |
protected String |
name |
protected org.bukkit.Material |
type |
Constructor and Description |
---|
ItemStackBuilder() |
Modifier and Type | Method and Description |
---|---|
ItemStackBuilder |
addEnchantment(org.bukkit.enchantments.Enchantment ench,
int level) |
ItemStackBuilder |
addLore(String lore) |
org.bukkit.inventory.ItemStack |
build() |
ItemStackBuilder |
setAmount(int amount) |
ItemStackBuilder |
setName(String name) |
ItemStackBuilder |
setType(org.bukkit.Material type) |
protected static final String lorePrefix
protected String name
protected org.bukkit.Material type
protected int amount
public ItemStackBuilder setName(String name)
public ItemStackBuilder addLore(String lore)
public ItemStackBuilder addEnchantment(org.bukkit.enchantments.Enchantment ench, int level)
public ItemStackBuilder setType(org.bukkit.Material type)
public ItemStackBuilder setAmount(int amount)
public org.bukkit.inventory.ItemStack build()
Copyright © 2015. All rights reserved.