Package org.bukkit.material
Class Dye
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.Dye
-
public class Dye extends MaterialData implements Colorable
Represents dye
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dyeclone()DyeColorgetColor()Gets the current color of this dyevoidsetColor(DyeColor color)Sets the color of this dyeStringtoString()-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
Dye
public Dye()
-
Dye
public Dye(Material type)
-
Dye
@Deprecated public Dye(Material type, byte data)
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
Dye
public Dye(DyeColor color)
- Parameters:
color- color of the dye
-
-
Method Detail
-
getColor
public DyeColor getColor()
Gets the current color of this dye
-
setColor
public void setColor(DyeColor color)
Sets the color of this dye
-
toString
public String toString()
- Overrides:
toStringin classMaterialData
-
clone
public Dye clone()
- Overrides:
clonein classMaterialData
-
-