Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.material.Wool Class Reference
Inheritance diagram for org.bukkit.material.Wool:
org.bukkit.material.MaterialData org.bukkit.material.Colorable

Public Member Functions

 Wool (DyeColor color)
 
 Wool (final int type)
 
 Wool (final Material type)
 
 Wool (final int type, final byte data)
 
 Wool (final Material type, final byte data)
 
DyeColor getColor ()
 
void setColor (DyeColor color)
 
String toString ()
 
Wool clone ()
 
- Public Member Functions inherited from org.bukkit.material.MaterialData
 MaterialData (final int type)
 
 MaterialData (final Material type)
 
 MaterialData (final int type, final byte data)
 
 MaterialData (final Material type, final byte data)
 
byte getData ()
 
void setData (byte data)
 
Material getItemType ()
 
int getItemTypeId ()
 
ItemStack toItemStack ()
 
ItemStack toItemStack (int amount)
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 

Detailed Description

Represents a Wool/Cloth block

Definition at line 9 of file Wool.java.

Constructor & Destructor Documentation

org.bukkit.material.Wool.Wool ( final int  type)
Deprecated:
Magic value

Definition at line 24 of file Wool.java.

24  {
25  super(type);
26  }
org.bukkit.material.Wool.Wool ( final int  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 37 of file Wool.java.

37  {
38  super(type, data);
39  }
org.bukkit.material.Wool.Wool ( final Material  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 46 of file Wool.java.

46  {
47  super(type, data);
48  }

Member Function Documentation

DyeColor org.bukkit.material.Wool.getColor ( )

Gets the current color of this dye

Returns
DyeColor of this dye

Implements org.bukkit.material.Colorable.

Definition at line 55 of file Wool.java.

References org.bukkit.DyeColor.getByWoolData(), and org.bukkit.material.MaterialData.getData().

55  {
56  return DyeColor.getByWoolData(getData());
57  }
void org.bukkit.material.Wool.setColor ( DyeColor  color)

Sets the color of this dye

Parameters
colorNew color of this dye

Implements org.bukkit.material.Colorable.

Definition at line 64 of file Wool.java.

References org.bukkit.DyeColor.getWoolData(), and org.bukkit.material.MaterialData.setData().

64  {
65  setData(color.getWoolData());
66  }

The documentation for this class was generated from the following file: