org.bukkit.material
Class Wool

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

public class Wool
extends MaterialData
implements Colorable

Represents a Wool/Cloth block


Constructor Summary
Wool()
           
Wool(DyeColor color)
           
Wool(int type)
          Deprecated. Magic value
Wool(int type, byte data)
          Deprecated. Magic value
Wool(Material type)
           
Wool(Material type, byte data)
          Deprecated. Magic value
 
Method Summary
 Wool 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

Wool

public Wool()

Wool

public Wool(DyeColor color)

Wool

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


Wool

public Wool(Material type)

Wool

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


Wool

@Deprecated
public Wool(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 Wool clone()
Overrides:
clone in class MaterialData


Copyright © 2013. All Rights Reserved.