org.bukkit.material
Class Dye
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Dye
- All Implemented Interfaces:
- Cloneable, Colorable
public class Dye
- extends MaterialData
- implements Colorable
Represents dye
Dye
public Dye()
Dye
public Dye(int type)
Dye
public Dye(Material type)
Dye
public Dye(int type,
byte data)
Dye
public Dye(Material type,
byte data)
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.