Class GlowMetaLeatherArmor

java.lang.Object
net.glowstone.inventory.GlowMetaItem
net.glowstone.inventory.GlowMetaLeatherArmor
All Implemented Interfaces:
Cloneable, org.bukkit.configuration.serialization.ConfigurationSerializable, org.bukkit.inventory.meta.ItemMeta, org.bukkit.inventory.meta.LeatherArmorMeta, org.bukkit.persistence.PersistentDataHolder

public class GlowMetaLeatherArmor extends GlowMetaItem implements org.bukkit.inventory.meta.LeatherArmorMeta
  • Constructor Details

    • GlowMetaLeatherArmor

      public GlowMetaLeatherArmor(org.bukkit.inventory.meta.ItemMeta meta)
      Creates an instance by copying from the given ItemMeta. If that item is another LeatherArmorMeta, its color is copied; otherwise, the new item is undyed.
      Parameters:
      meta - the ItemMeta to copy
  • Method Details

    • setColor

      public void setColor(org.bukkit.Color color)
      Specified by:
      setColor in interface org.bukkit.inventory.meta.LeatherArmorMeta
    • isApplicable

      public boolean isApplicable(org.bukkit.Material material)
      Description copied from class: GlowMetaItem
      Check whether this ItemMeta can be applied to the given material.
      Overrides:
      isApplicable in class GlowMetaItem
      Parameters:
      material - The Material.
      Returns:
      True if this ItemMeta is applicable.
    • serialize

      @NotNull public @NotNull Map<String,Object> serialize()
      Specified by:
      serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializable
      Overrides:
      serialize in class GlowMetaItem
    • clone

      @NotNull public @NotNull org.bukkit.inventory.meta.LeatherArmorMeta clone()
      Specified by:
      clone in interface org.bukkit.inventory.meta.ItemMeta
      Specified by:
      clone in interface org.bukkit.inventory.meta.LeatherArmorMeta
      Overrides:
      clone in class GlowMetaItem
    • getColor

      public org.bukkit.Color getColor()
      Specified by:
      getColor in interface org.bukkit.inventory.meta.LeatherArmorMeta