接口 LeatherArmorMeta
- 所有超级接口:
Cloneable,ConfigurationSerializable,ItemMeta
-
方法概要
修饰符和类型方法说明clone()getColor()获取这个盔甲的颜色.如果它还没有被设置,就会返回ItemFactory.getDefaultLeatherColor().void设置这个盔甲的颜色.从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable
serialize从接口继承的方法 org.bukkit.inventory.meta.ItemMeta
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable
-
方法详细资料
-
getColor
Color 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
LeatherArmorMeta clone()
-