public class CustomLeatherArmor extends CustomArmor
CHEST_UUID, FEET_UUID, HEAD_UUID, LEGS_UUID, LORE_PREFIX, LORE_SUFFIX, MAIN_HAND_UUID, OFF_HAND_UUID
Constructor and Description |
---|
CustomLeatherArmor(ArmorType armorType,
int amount,
short durability,
java.lang.String idName,
org.bukkit.Color color)
Creates a Custom Leather Armor piece.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.Color |
getColor() |
CustomLeatherArmor |
setColor(org.bukkit.Color color)
Set the CustomLeatherArmor's Color.
|
addArmor, addArmorToughness, addAttribute, getArmorType, getDurabilityMechanics, setDurabilityMechanics, setDurabilityMechanics
addAllCustomRecipes, addAttribute, addAttribute, addAttribute, addCustomRecipe, addEnchantment, addForbiddenEnchantment, addForbiddenEnchantment, addItemFlag, addLoreLine, clearAttributes, clone, compareTo, getAmount, getAttributes, getAttributeVisibility, getBurnTime, getCanBePlacedVisibility, getCanDestroyVisibility, getCustomRecipes, getDisplayName, getDurability, getEnchantmentVisibility, getEnchantmnets, getFakeDurability, getForbidenEnchantments, getFullLore, getIdName, getItemFlags, getItemType, getLore, getMaterial, getPermissions, getPotionEffectsVisibility, getUnbreakableVisibility, hasFakeDurability, hasHoeAbilities, isCombinableInCrafting, isEnchantable, isUnbreakable, setAmount, setAttributes, setAttributeVisibility, setBurnTime, setCanBePlacedVisibility, setCanDestroyVisibility, setCombinedInCrafting, setDisplayName, setDurability, setEnchantable, setEnchantmentVisibility, setFakeDurability, setHoeAbilities, setIdName, setLore, setMaterial, setPermissions, setPotionEffectsVisibility, setUnbreakable, setUnbreakableVisibility
public CustomLeatherArmor(ArmorType armorType, int amount, short durability, java.lang.String idName, org.bukkit.Color color)
armorType
- The type of the Leather Armor. This will automatically set the
Material using ArmorType.getLeatherMaterial()
.amount
- The amount of the Leather Armor. Recommended value is one, as
Armor Pieces do not have a stackable size higher than 1 by
default.durability
- The durability of the Leather Armor.idName
- the Custom Armor's ID Name. This MUST BE SIMILAR to
"vanilla_additions:emerald_sword" and is saved in the
ItemStack so you can easily detect which Custom Armor it is.color
- The color that the leather armor will have.public org.bukkit.Color getColor()
public CustomLeatherArmor setColor(org.bukkit.Color color)
color
- the color to set. Use Color.fromRGB(int, int, int)
to
find it easily using RGB values.