Package org.bukkit.material
Class Wool
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.Wool
-
public class Wool extends MaterialData implements Colorable
Represents a Wool/Cloth block
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Woolclone()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
-
Wool
public Wool()
-
Wool
public Wool(DyeColor color)
-
Wool
public Wool(Material type)
-
Wool
@Deprecated public Wool(Material type, byte data)
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
-
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 Wool clone()
- Overrides:
clonein classMaterialData
-
-