001 package org.bukkit.inventory.meta;
002
003 /**
004 * Represents an item that can be repaired at an anvil.
005 */
006 public interface Repairable {
007
008 /**
009 * Checks to see if this has a repair penalty
010 *
011 * @return true if this has a repair penalty
012 */
013 boolean hasRepairCost();
014
015 /**
016 * Gets the repair penalty
017 *
018 * @return the repair penalty
019 */
020 int getRepairCost();
021
022 /**
023 * Sets the repair penalty
024 *
025 * @param cost repair penalty
026 */
027 void setRepairCost(int cost);
028
029 @SuppressWarnings("javadoc")
030 Repairable clone();
031 }