diff options
author | Xor Boole <mcyoung@mit.edu> | 2016-11-30 16:41:08 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-11-30 16:41:08 +1100 |
commit | 4a68be0edc7f0f4b8d08d60f9847e75b08ecbaa1 (patch) | |
tree | fecab69581ef64aed36f741a31344acba1eaddaf | |
parent | 51d92a748dd56496b173885f6c44ad48da230057 (diff) | |
download | bukkit-4a68be0edc7f0f4b8d08d60f9847e75b08ecbaa1.tar bukkit-4a68be0edc7f0f4b8d08d60f9847e75b08ecbaa1.tar.gz bukkit-4a68be0edc7f0f4b8d08d60f9847e75b08ecbaa1.tar.lz bukkit-4a68be0edc7f0f4b8d08d60f9847e75b08ecbaa1.tar.xz bukkit-4a68be0edc7f0f4b8d08d60f9847e75b08ecbaa1.zip |
Add some expansions to Anvil Inventory API
-rw-r--r-- | src/main/java/org/bukkit/inventory/AnvilInventory.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/inventory/AnvilInventory.java b/src/main/java/org/bukkit/inventory/AnvilInventory.java index 70fae71b..289a630e 100644 --- a/src/main/java/org/bukkit/inventory/AnvilInventory.java +++ b/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); } |