接口 LeatherArmorMeta
- 所有已知子接口:
ColorableArmorMeta
-
方法概要
修饰符和类型方法说明clone()
getColor()
获取这个盔甲的颜色.如果它还没有被设置,就会返回ItemFactory.getDefaultLeatherColor()
.void
设置这个盔甲的颜色.从接口继承的方法 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
-
方法详细资料
-
getColor
获取这个盔甲的颜色.如果它还没有被设置,就会返回ItemFactory.getDefaultLeatherColor()
.原文:Gets the color of the armor. If it has not been set otherwise, it will be
ItemFactory.getDefaultLeatherColor()
.- 返回:
- 这个盔甲的颜色,注意这永远都不会是null
-
setColor
设置这个盔甲的颜色.原文:Sets the color of the armor.
- 参数:
color
- 要设置的颜色.设置此为null等于设置成ItemFactory.getDefaultLeatherColor()
.
-
clone
-