public interface StackedItem extends AsyncStackedObject<org.bukkit.entity.Item>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCustomName()
Get the custom name of the item.
|
org.bukkit.entity.Item |
getItem()
Get the item object of bukkit.
|
org.bukkit.inventory.ItemStack |
getItemStack()
Get the item stack of the item.
|
java.util.UUID |
getUniqueId()
Get the uuid of the item.
|
void |
giveItemStack(org.bukkit.inventory.Inventory inventory)
Add the duplicated item stack to an inventory.
|
boolean |
isCustomNameVisible()
Check whether or not the name of the item is visible.
|
void |
setCustomName(java.lang.String customName)
Set a custom-name to the item.
|
void |
setCustomNameVisible(boolean visible)
Set visible custom name flag to the item.
|
void |
setItemStack(org.bukkit.inventory.ItemStack itemStack)
Set the item stack of the item.
|
runStackAsync, runStackAsync
canStackInto, getLocation, getMergeRadius, getStackAmount, getStackLimit, getWorld, isBlacklisted, isCached, isSimilar, isWhitelisted, isWorldDisabled, remove, runStack, runStack, runStackCheck, runUnstack, runUnstack, setStackAmount, spawnStackParticle, tryStack, tryStackInto, tryUnstack, updateName
org.bukkit.entity.Item getItem()
java.util.UUID getUniqueId()
java.lang.String getCustomName()
void setCustomName(java.lang.String customName)
customName
- a new custom nameboolean isCustomNameVisible()
void setCustomNameVisible(boolean visible)
visible
- should the custom name of the item be visible or notvoid setItemStack(org.bukkit.inventory.ItemStack itemStack)
itemStack
- a new item stackorg.bukkit.inventory.ItemStack getItemStack()
void giveItemStack(org.bukkit.inventory.Inventory inventory)
inventory
- inventory to add the item to