mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
Add some expansions to Anvil Inventory API
By: Xor Boole <mcyoung@mit.edu>
This commit is contained in:
parent
ff46831b2d
commit
8b0439979a
1 changed files with 22 additions and 0 deletions
|
@ -4,4 +4,26 @@ package org.bukkit.inventory;
|
||||||
* Interface to the inventory of an Anvil.
|
* Interface to the inventory of an Anvil.
|
||||||
*/
|
*/
|
||||||
public interface AnvilInventory extends Inventory {
|
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…
Reference in a new issue