Class Dye

All Implemented Interfaces:
Cloneable, Colorable

@Deprecated(forRemoval=true, since="1.13") public class Dye extends MaterialData implements Colorable
Deprecated, for removal: This API element is subject to removal in a future version.
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents dye
  • Constructor Summary

    Constructors
    Constructor
    Description
    Dye()
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Dye(DyeColor color)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Dye(Material type)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Dye(Material type, byte data)
    Deprecated.
    Magic value
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the current color of this dye
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the color of this dye
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class org.bukkit.material.MaterialData

    equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Dye

      public Dye()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Dye

      public Dye(Material type)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • 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, for removal: This API element is subject to removal in a future version.
      Parameters:
      color - color of the dye
  • Method Details

    • getColor

      public DyeColor getColor()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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, for removal: This API element is subject to removal in a future version.
      Sets the color of this dye
      Specified by:
      setColor in interface Colorable
      Parameters:
      color - New color of this dye
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class MaterialData
    • clone

      public Dye clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class MaterialData