From 8b0439979a23c77f4d85f51c82b0fa708101f4d1 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 30 Nov 2016 16:41:08 +1100 Subject: [PATCH] Add some expansions to Anvil Inventory API By: Xor Boole --- .../org/bukkit/inventory/AnvilInventory.java | 22 +++++++++++++++++++ 1 file changed, 22 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 70fae71bf4..289a630e88 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/AnvilInventory.java +++ b/paper-api/src/main/java/org/bukkit/inventory/AnvilInventory.java @@ -4,4 +4,26 @@ package org.bukkit.inventory; * Interface to the inventory of an Anvil. */ public interface AnvilInventory extends Inventory { + + /** + * Get the name to be applied to the repaired item. An empty string denotes + * the default item name. + * + * @return the rename text + */ + String getRenameText(); + + /** + * Get the experience cost (in levels) to complete the current repair. + * + * @return the experience cost + */ + int getRepairCost(); + + /** + * Set the experience cost (in levels) to complete the current repair. + * + * @param levels the experience cost + */ + void setRepairCost(int levels); }