Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.material.Wool Class Reference

Represents a Wool/Cloth block. More...

+ Inheritance diagram for org.bukkit.material.Wool:
+ Collaboration diagram for org.bukkit.material.Wool:

Public Member Functions

 Wool ()
 
 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 ()
 Gets the current color of this dye.
 
void setColor (DyeColor color)
 Sets the color of this dye.
 
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 ()
 Gets the raw data in this material.
 
void setData (byte data)
 Sets the raw data of this material.
 
Material getItemType ()
 Gets the Material that this MaterialData represents.
 
int getItemTypeId ()
 Gets the Material Id that this MaterialData represents.
 
ItemStack toItemStack ()
 Creates a new ItemStack based on this MaterialData.
 
ItemStack toItemStack (int amount)
 Creates a new ItemStack based on this MaterialData.
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 
- Public Member Functions inherited from org.bukkit.material.Colorable
DyeColor getColor ()
 Gets the color of this object.
 
void setColor (DyeColor color)
 Sets the color of this object to the specified DyeColor.
 

Detailed Description

Represents a Wool/Cloth block.

Definition at line 9 of file Wool.java.

Constructor & Destructor Documentation

org.bukkit.material.Wool.Wool ( )

Definition at line 10 of file Wool.java.

References org.bukkit.Material.WOOL.

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

Definition at line 14 of file Wool.java.

References org.bukkit.material.Wool.setColor().

org.bukkit.material.Wool.Wool ( final int  type)

Definition at line 19 of file Wool.java.

org.bukkit.material.Wool.Wool ( final Material  type)

Definition at line 23 of file Wool.java.

org.bukkit.material.Wool.Wool ( final int  type,
final byte  data 
)

Definition at line 27 of file Wool.java.

org.bukkit.material.Wool.Wool ( final Material  type,
final byte  data 
)

Definition at line 31 of file Wool.java.

Member Function Documentation

Wool org.bukkit.material.Wool.clone ( )

Definition at line 59 of file Wool.java.

References org.bukkit.material.Wool.clone().

Referenced by org.bukkit.material.Wool.clone().

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

Gets the current color of this dye.

Returns
DyeColor of this dye

Definition at line 40 of file Wool.java.

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

Referenced by org.bukkit.material.Wool.toString().

void org.bukkit.material.Wool.setColor ( DyeColor  color)

Sets the color of this dye.

Parameters
colorNew color of this dye

Definition at line 49 of file Wool.java.

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

Referenced by org.bukkit.material.Wool.Wool().

String org.bukkit.material.Wool.toString ( )

Definition at line 54 of file Wool.java.

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


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