SPIGOT-6890: Add repair cost amount in AnvilInventory

This commit is contained in:
Doc 2022-01-26 09:30:16 +11:00 committed by md_5
parent bc7bd36317
commit af88996a3d
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -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.
* *