From 945ba17577dc1351a51880f3dcb4e2a63b39fcef Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 26 Jan 2022 09:30:16 +1100 Subject: [PATCH] SPIGOT-6890: Add repair cost amount in AnvilInventory By: Doc --- .../java/org/bukkit/inventory/AnvilInventory.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/inventory/AnvilInventory.java b/paper-api/src/main/java/org/bukkit/inventory/AnvilInventory.java index 4af562426a..52519cd877 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/AnvilInventory.java +++ b/paper-api/src/main/java/org/bukkit/inventory/AnvilInventory.java @@ -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. *