137 lines
1.9 KiB
Markdown
137 lines
1.9 KiB
Markdown
# IScriptItemStack.setUnbreakable
|
|
|
|
[← IScriptItemStack](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 1/3 · [sonraki](setUnbreakable-2.md)
|
|
|
|
setUnbreakable(boolean unbreakable)
|
|
|
|
void Set whether an item stack is unbreakable or not.
|
|
|
|
Method Detail
|
|
getMinecraftItemStack
|
|
|
|
ItemStack getMinecraftItemStack()
|
|
|
|
Get Minecraft item stack instance. BEWARE: you need to know the MCP mappings in order to directly
|
|
call methods on this instance!
|
|
|
|
isEmpty
|
|
|
|
boolean isEmpty()
|
|
|
|
Whether this item is empty.
|
|
|
|
getItem
|
|
|
|
IScriptItem getItem()
|
|
|
|
Get item stack's item.
|
|
|
|
copy
|
|
|
|
IScriptItemStack copy()
|
|
|
|
|
|
|
|
Get a copy of item stack.
|
|
|
|
getMaxCount
|
|
|
|
int getMaxCount()
|
|
|
|
Get item stack's maximum size.
|
|
|
|
getCount
|
|
|
|
int getCount()
|
|
|
|
Get item stack's count.
|
|
|
|
setCount
|
|
|
|
void setCount(int count)
|
|
|
|
Set item stack's count.
|
|
|
|
getMeta
|
|
|
|
int getMeta()
|
|
|
|
Get item stack's meta.
|
|
|
|
setMeta
|
|
|
|
void setMeta(int meta)
|
|
|
|
Set item stack's meta.
|
|
|
|
hasData
|
|
|
|
boolean hasData()
|
|
|
|
Check whether an item stack has an NBT compound tag.
|
|
|
|
getData
|
|
|
|
INBTCompound getData()
|
|
|
|
Get item stack's NBT compound tag.
|
|
|
|
setData
|
|
|
|
void setData(INBTCompound tag)
|
|
|
|
Replace item stack's NBT compound tag.
|
|
|
|
serialize
|
|
|
|
INBTCompound serialize()
|
|
|
|
Serialize item stack to an NBT compound.
|
|
|
|
getDisplayName
|
|
|
|
java.lang.String getDisplayName()
|
|
|
|
Get display name of the item stack.
|
|
|
|
setDisplayName
|
|
|
|
void setDisplayName(java.lang.String name)
|
|
|
|
Set display name of the item stack.
|
|
|
|
getLore
|
|
|
|
java.lang.String getLore(int index)
|
|
|
|
Get lore of the item stack.
|
|
|
|
getLoreList
|
|
|
|
|
|
|
|
java.util.List<java.lang.String> getLoreList()
|
|
|
|
Get all lore lines of the item stack as a list.
|
|
|
|
setLore
|
|
|
|
void setLore(int index,
|
|
java.lang.String lore)
|
|
|
|
Set lore of the item stack.
|
|
|
|
addLore
|
|
|
|
void addLore(java.lang.String lore)
|
|
|
|
Add a lore line to the item stack.
|
|
|
|
clearAllLores
|
|
|
|
void clearAllLores()
|
|
|
|
Remove all lore lines from the item stack.
|