Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
Repairable.java
1 package org.bukkit.inventory.meta;
2 
3 /**
4  * Represents an item that can be repaired at an anvil.
5  */
6 public interface Repairable {
7 
8  /**
9  * Checks to see if this has a repair penalty
10  *
11  * @return true if this has a repair penalty
12  */
13  boolean hasRepairCost();
14 
15  /**
16  * Gets the repair penalty
17  *
18  * @return the repair penalty
19  */
20  int getRepairCost();
21 
22  /**
23  * Sets the repair penalty
24  *
25  * @param cost repair penalty
26  */
27  void setRepairCost(int cost);
28 
29  @SuppressWarnings("javadoc")
30  Repairable clone();
31 }