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