Package org.bukkit.material
Class Dye
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Dye
- All Implemented Interfaces:
java.lang.Cloneable,Colorable
public class Dye extends MaterialData implements Colorable
Represents dye
-
Constructor Summary
-
Method Summary
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Dye
public Dye() -
Dye
@Deprecated public Dye(int type)Deprecated.Magic value- Parameters:
type- the raw type id
-
Dye
-
Dye
@Deprecated public Dye(int type, byte data)Deprecated.Magic value- Parameters:
type- the raw type iddata- the raw data value
-
Dye
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
Dye
- Parameters:
color- color of the dye
-
-
Method Details
-
getColor
Gets the current color of this dye -
setColor
Sets the color of this dye -
toString
public java.lang.String toString()- Overrides:
toStringin classMaterialData
-
clone
- Overrides:
clonein classMaterialData
-