Package org.bukkit.inventory.meta
Interface Repairable
-
public interface RepairableRepresents an item that can be repaired at an anvil.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Repairableclone()intgetRepairCost()Gets the repair penaltybooleanhasRepairCost()Checks to see if this has a repair penaltyvoidsetRepairCost(int cost)Sets the repair penalty
-
-
-
Method Detail
-
hasRepairCost
boolean hasRepairCost()
Checks to see if this has a repair penalty- Returns:
- true if this has a repair penalty
-
getRepairCost
int getRepairCost()
Gets the repair penalty- Returns:
- the repair penalty
-
setRepairCost
void setRepairCost(int cost)
Sets the repair penalty- Parameters:
cost- repair penalty
-
clone
@NotNull Repairable clone()
-
-