# IScriptItemStack.setUnbreakable [← IScriptItemStack](index.md) · [← Master](../../wiki.md) Parça 2/3 · [önceki](setUnbreakable.md) · [sonraki](setUnbreakable-3.md) clearLore void clearLore(int index) Remove a lore line from the item stack. clearAllEnchantments void clearAllEnchantments() Clear all enchantments from the item stack. getCanDestroyBlocks java.util.List getCanDestroyBlocks() Get a list of all blocks the item stack can destroy. addCanDestroyBlock void addCanDestroyBlock(java.lang.String block) Add a block that the item stack can destroy. clearAllCanDestroyBlocks void clearAllCanDestroyBlocks() Clear all blocks that the item stack can destroy. clearCanDestroyBlock void clearCanDestroyBlock(java.lang.String block) Clear a block that the item stack can destroy. getCanPlaceOnBlocks java.util.List getCanPlaceOnBlocks() Get a list of all blocks the item stack can place on. addCanPlaceOnBlock void addCanPlaceOnBlock(java.lang.String block) Add a block that the item stack can place on. clearAllCanPlaceOnBlocks void clearAllCanPlaceOnBlocks() Clear all blocks that the item stack can place on. clearCanPlaceOnBlock void clearCanPlaceOnBlock(java.lang.String block) Clear a block that the item stack can place on. getRepairCost int getRepairCost() Get repair cost of the item stack. setRepairCost void setRepairCost(int cost) Set repair cost of the item stack. isUnbreakable boolean isUnbreakable() Check if an item stack is unbreakable. setUnbreakable void setUnbreakable(boolean unbreakable) Set whether an item stack is unbreakable or not. add void add(int amount) Add/remove more items to the stack. equals boolean equals(ScriptItemStack other) Check if this item stack is equal to another item stack. Overrides: