Package org.bukkit.inventory.view
Interface AnvilView
- All Superinterfaces:
- InventoryView
An instance of 
InventoryView which provides extra methods related to
 anvil view data.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.inventory.InventoryViewInventoryView.Property
- 
Field SummaryFields inherited from interface org.bukkit.inventory.InventoryViewOUTSIDE
- 
Method SummaryModifier and TypeMethodDescriptionintGets the maximum repair cost needed to repair.Gets the rename text specified within the anvil's text field.intGets the experience cost needed to repair.intGets the amount of items needed to repair.Get the upper inventory involved in this transaction.voidsetMaximumRepairCost(int levels) Sets maximum repair cost in experience.voidsetRepairCost(int cost) Sets the repair cost in experience.voidsetRepairItemCountCost(int amount) Sets the amount of repair materials required to repair the item.Methods inherited from interface org.bukkit.inventory.InventoryViewclose, convertSlot, countSlots, getBottomInventory, getCursor, getInventory, getItem, getOriginalTitle, getPlayer, getSlotType, getTitle, getType, setCursor, setItem, setProperty, setTitle
- 
Method Details- 
getTopInventoryDescription copied from interface:InventoryViewGet the upper inventory involved in this transaction.- Specified by:
- getTopInventoryin interface- InventoryView
- Returns:
- the inventory
 
- 
getRenameTextGets the rename text specified within the anvil's text field.- Returns:
- The text within the anvil's text field if an item is present otherwise null
 
- 
getRepairItemCountCostint getRepairItemCountCost()Gets the amount of items needed to repair.- Returns:
- The amount of materials required to repair the item
 
- 
getRepairCostint getRepairCost()Gets the experience cost needed to repair.- Returns:
- The repair cost in experience
 
- 
getMaximumRepairCostint getMaximumRepairCost()Gets the maximum repair cost needed to repair.- Returns:
- The maximum repair cost in experience
 
- 
setRepairItemCountCostvoid setRepairItemCountCost(int amount) Sets the amount of repair materials required to repair the item.- Parameters:
- amount- the amount of repair materials
 
- 
setRepairCostvoid setRepairCost(int cost) Sets the repair cost in experience.- Parameters:
- cost- the experience cost to repair
 
- 
setMaximumRepairCostvoid setMaximumRepairCost(int levels) Sets maximum repair cost in experience.- Parameters:
- levels- the levels to set
 
 
-