public class ItemBuilder
extends java.lang.Object
Constructor | Description |
---|---|
ItemBuilder(org.bukkit.Material material) |
Modifier and Type | Method | Description |
---|---|---|
void |
addNBTTag(java.lang.String tag) |
Adds an NBT tag to an item.
|
org.bukkit.inventory.ItemStack |
getItem() |
Converts the ItemBuilder into an ItemStack.
|
void |
setLore(java.lang.String lore) |
Sets the lore of the item.
|
void |
setName(java.lang.String name) |
Sets the display name of the item.
|
void |
setNBTString(java.lang.String key,
java.lang.String value) |
Sets an NBT string for the item.
|
public void setName(java.lang.String name)
name
- the new display name of the itempublic void setLore(java.lang.String lore)
lore
- the new lore of the itempublic void addNBTTag(java.lang.String tag)
tag
- the NBT tag to addpublic void setNBTString(java.lang.String key, java.lang.String value)
key
- the key of the NBT stringvalue
- the value of the NBT stringpublic org.bukkit.inventory.ItemStack getItem()