mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Add some expansions to Anvil Inventory API
This commit is contained in:
parent
51d92a748d
commit
4a68be0edc
1 changed files with 22 additions and 0 deletions
|
@ -4,4 +4,26 @@ package org.bukkit.inventory;
|
|||
* Interface to the inventory of an Anvil.
|
||||
*/
|
||||
public interface AnvilInventory extends Inventory {
|
||||
|
||||
/**
|
||||
* Get the name to be applied to the repaired item. An empty string denotes
|
||||
* the default item name.
|
||||
*
|
||||
* @return the rename text
|
||||
*/
|
||||
String getRenameText();
|
||||
|
||||
/**
|
||||
* Get the experience cost (in levels) to complete the current repair.
|
||||
*
|
||||
* @return the experience cost
|
||||
*/
|
||||
int getRepairCost();
|
||||
|
||||
/**
|
||||
* Set the experience cost (in levels) to complete the current repair.
|
||||
*
|
||||
* @param levels the experience cost
|
||||
*/
|
||||
void setRepairCost(int levels);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue