Class Dye

All Implemented Interfaces:
Cloneable, Colorable

@Deprecated public class Dye extends MaterialData implements Colorable
Deprecated.
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents dye
  • Constructor Details

    • Dye

      public Dye()
      Deprecated.
    • Dye

      public Dye(Material type)
      Deprecated.
    • Dye

      @Deprecated public Dye(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - the raw data value
    • Dye

      public Dye(DyeColor color)
      Deprecated.
      Parameters:
      color - color of the dye
  • Method Details

    • getColor

      public DyeColor getColor()
      Deprecated.
      Gets the current color of this dye
      Specified by:
      getColor in interface Colorable
      Returns:
      DyeColor of this dye
    • setColor

      public void setColor(DyeColor color)
      Deprecated.
      Sets the color of this dye
      Specified by:
      setColor in interface Colorable
      Parameters:
      color - New color of this dye
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class MaterialData
    • clone

      public Dye clone()
      Deprecated.
      Overrides:
      clone in class MaterialData