org.bukkit.material
Class Dye

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.Dye
All Implemented Interfaces:
Cloneable, Colorable

public class Dye
extends MaterialData
implements Colorable

Represents dye


Constructor Summary
Dye()
           
Dye(int type)
          Deprecated. Magic value
Dye(int type, byte data)
          Deprecated. Magic value
Dye(Material type)
           
Dye(Material type, byte data)
          Deprecated. Magic value
 
Method Summary
 Dye clone()
           
 DyeColor getColor()
          Gets the current color of this dye
 void setColor(DyeColor color)
          Sets the color of this dye
 String toString()
           
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dye

public Dye()

Dye

@Deprecated
public Dye(int type)
Deprecated. Magic value


Dye

public Dye(Material type)

Dye

@Deprecated
public Dye(int type,
                      byte data)
Deprecated. Magic value


Dye

@Deprecated
public Dye(Material type,
                      byte data)
Deprecated. Magic value

Method Detail

getColor

public DyeColor getColor()
Gets the current color of this dye

Specified by:
getColor in interface Colorable
Returns:
DyeColor of this dye

setColor

public void setColor(DyeColor color)
Sets the color of this dye

Specified by:
setColor in interface Colorable
Parameters:
color - New color of this dye

toString

public String toString()
Overrides:
toString in class MaterialData

clone

public Dye clone()
Overrides:
clone in class MaterialData


Copyright © 2013. All Rights Reserved.