Package org.bukkit.inventory.meta
Interface Repairable
- All Superinterfaces:
- Cloneable,- ConfigurationSerializable,- ItemMeta,- PersistentDataHolder
Represents an item that can be repaired at an anvil.
- 
Method SummaryModifier and TypeMethodDescriptionclone()intGets the repair penaltybooleanChecks to see if this has a repair penaltyvoidsetRepairCost(int cost) Sets the repair penaltyMethods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializableserializeMethods inherited from interface org.bukkit.inventory.meta.ItemMetaaddAttributeModifier, addEnchant, addItemFlags, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setLocalizedName, setLore, setUnbreakable, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainer
- 
Method Details- 
hasRepairCostboolean hasRepairCost()Checks to see if this has a repair penalty- Returns:
- true if this has a repair penalty
 
- 
getRepairCostint getRepairCost()Gets the repair penalty- Returns:
- the repair penalty
 
- 
setRepairCostvoid setRepairCost(int cost) Sets the repair penalty- Parameters:
- cost- repair penalty
 
- 
clone
 
-