接口 Repairable
代表可以在铁砧上修复的物品.
-
方法概要
修饰符和类型方法说明clone()
int
获取修复此物品所需的额外经验等级.boolean
检测修复此物品是否需要消耗额外经验等级.void
setRepairCost
(int cost) 设置修复此物品所需的额外经验等级.从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
从接口继承的方法 org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getFood, getItemFlags, getItemName, getJukeboxPlayable, getLocalizedName, getLore, getMaxStackSize, getRarity, getTool, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchantmentGlintOverride, hasEnchants, hasFood, hasItemFlag, hasItemName, hasJukeboxPlayable, hasLocalizedName, hasLore, hasMaxStackSize, hasRarity, hasTool, isFireResistant, isHideTooltip, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setEnchantmentGlintOverride, setFireResistant, setFood, setHideTooltip, setItemName, setJukeboxPlayable, setLocalizedName, setLore, setMaxStackSize, setRarity, setTool, setUnbreakable, setVersion
从接口继承的方法 org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
方法详细资料
-
hasRepairCost
boolean hasRepairCost()检测修复此物品是否需要消耗额外经验等级.原文: Checks to see if this has a repair penalty
- 返回:
- 修复此物品是否需要消耗额外经验等级
-
getRepairCost
int getRepairCost()获取修复此物品所需的额外经验等级.原文: Gets the repair penalty
- 返回:
- 修复此物品所需的额外经验等级
-
setRepairCost
void setRepairCost(int cost) 设置修复此物品所需的额外经验等级.原文: Sets the repair penalty
- 参数:
cost
- 修复此物品所需的额外经验等级
-
clone
-