Package org.bukkit.inventory
Interface AnvilInventory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetRenameText()Get the name to be applied to the repaired item.intgetRepairCost()Get the experience cost (in levels) to complete the current repair.voidsetRepairCost(int levels)Set the experience cost (in levels) to complete the current repair.-
Methods inherited from interface org.bukkit.inventory.Inventory
addItem, all, all, clear, clear, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getName, getSize, getStorageContents, getTitle, getType, getViewers, iterator, iterator, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getRenameText
String getRenameText()
Get the name to be applied to the repaired item. An empty string denotes the default item name.- Returns:
- the rename text
-
getRepairCost
int getRepairCost()
Get the experience cost (in levels) to complete the current repair.- Returns:
- the experience cost
-
setRepairCost
void setRepairCost(int levels)
Set the experience cost (in levels) to complete the current repair.- Parameters:
levels- the experience cost
-
-