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)
           
Wool(int type, byte data)
           
Wool(Material type)
           
Wool(Material type, byte data)
           
 
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

public Wool(int type)

Wool

public Wool(Material type)

Wool

public Wool(int type,
            byte data)

Wool

public Wool(Material type,
            byte data)
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.