Class ItemColorArmor

All Implemented Interfaces:
BlockID, ItemDurable, ItemID, Cloneable
Direct Known Subclasses:
ItemBootsLeather, ItemChestplateLeather, ItemHelmetLeather, ItemLeggingsLeather

public abstract class ItemColorArmor extends ItemArmor
Since:
27.03.2016
Author:
fromgate
  • Constructor Details

    • ItemColorArmor

      public ItemColorArmor(int id)
    • ItemColorArmor

      public ItemColorArmor(int id, Integer meta)
    • ItemColorArmor

      public ItemColorArmor(int id, Integer meta, int count)
    • ItemColorArmor

      public ItemColorArmor(int id, Integer meta, int count, String name)
  • Method Details

    • setColor

      @Deprecated public ItemColorArmor setColor(int dyeColor)
      Deprecated.
      Set leather armor color
      Parameters:
      dyeColor - - Dye color data value
      Returns:
      - Return colored item
    • setColor

      public ItemColorArmor setColor(DyeColor dyeColor)
      Set leather armor color
      Parameters:
      dyeColor - - DyeColor object
      Returns:
      - Return colored item
    • setColor

      public ItemColorArmor setColor(BlockColor color)
      Set leather armor color
      Parameters:
      color - - BlockColor object
      Returns:
      - Return colored item
    • setColor

      public ItemColorArmor setColor(int r, int g, int b)
      Set leather armor color
      Parameters:
      r - - red
      g - - green
      b - - blue
      Returns:
      - Return colored item
    • getColor

      public BlockColor getColor()
      Get color of Leather Item
      Returns:
      - BlockColor, or null if item has no color