All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.inventory.meta.Repairable Maven / Gradle / Ivy

package org.bukkit.inventory.meta;

/**
 * Represents an item that can be repaired at an anvil.
 */
public interface Repairable {

  /**
   * Checks to see if this has a repair penalty
   *
   * @return true if this has a repair penalty
   */
  boolean hasRepairCost();

  /**
   * Gets the repair penalty
   *
   * @return the repair penalty
   */
  int getRepairCost();

  /**
   * Sets the repair penalty
   *
   * @param cost repair penalty
   */
  void setRepairCost(int cost);

  @SuppressWarnings("javadoc")
  Repairable clone();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy