Package org.bukkit.inventory
Interface AnvilInventory
Interface to the inventory of an Anvil.
- 
Method SummaryModifier and TypeMethodDescriptionintDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.voidsetMaximumRepairCost(int levels) Deprecated, for removal: This API element is subject to removal in a future version.voidsetRepairCost(int levels) Deprecated, for removal: This API element is subject to removal in a future version.voidsetRepairCostAmount(int amount) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface org.bukkit.inventory.InventoryaddItem, all, all, clear, clear, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContentsMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Method Details- 
getRenameTextDeprecated, for removal: This API element is subject to removal in a future version.Get the name to be applied to the repaired item. An empty string denotes the default item name.- Returns:
- the rename text
 
- 
getRepairCostAmountDeprecated, for removal: This API element is subject to removal in a future version.Get the item cost (in amount) to complete the current repair.- Returns:
- the amount
 
- 
setRepairCostAmountDeprecated, for removal: This API element is subject to removal in a future version.Set the item cost (in amount) to complete the current repair.- Parameters:
- amount- the amount
 
- 
getRepairCostDeprecated, for removal: This API element is subject to removal in a future version.Get the experience cost (in levels) to complete the current repair.- Returns:
- the experience cost
 
- 
setRepairCostDeprecated, for removal: This API element is subject to removal in a future version.Set the experience cost (in levels) to complete the current repair.- Parameters:
- levels- the experience cost
 
- 
getMaximumRepairCostDeprecated, for removal: This API element is subject to removal in a future version.Get the maximum experience cost (in levels) to be allowed by the current repair. If the result ofgetRepairCost()exceeds the returned value, the repair result will be air to due being "too expensive".By default, this level is set to 40. Players in creative mode ignore the maximum repair cost. - Returns:
- the maximum experience cost
 
- 
setMaximumRepairCostDeprecated, for removal: This API element is subject to removal in a future version.Set the maximum experience cost (in levels) to be allowed by the current repair. The default value set by vanilla Minecraft is 40.- Parameters:
- levels- the maximum experience cost
 
 
- 
AnvilView.getMaximumRepairCost().