SPIGOT-6890: Add repair cost amount in AnvilInventory

By: Doc <nachito94@msn.com>
This commit is contained in:
Bukkit/Spigot 2022-01-26 09:30:16 +11:00
parent 2ea9616224
commit 945ba17577

View File

@ -16,6 +16,20 @@ public interface AnvilInventory extends Inventory {
@Nullable
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.
*