mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
SPIGOT-6890: Add repair cost amount in AnvilInventory
By: Doc <nachito94@msn.com>
This commit is contained in:
@@ -16,6 +16,20 @@ public interface AnvilInventory extends Inventory {
|
|||||||
@Nullable
|
@Nullable
|
||||||
String getRenameText();
|
String getRenameText();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the item cost (in amount) to complete the current repair.
|
||||||
|
*
|
||||||
|
* @return the amount
|
||||||
|
*/
|
||||||
|
int getRepairCostAmount();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the item cost (in amount) to complete the current repair.
|
||||||
|
*
|
||||||
|
* @param amount the amount
|
||||||
|
*/
|
||||||
|
void setRepairCostAmount(int amount);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the experience cost (in levels) to complete the current repair.
|
* Get the experience cost (in levels) to complete the current repair.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user