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

Represents dye. More...

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

Public Member Functions

 Dye ()
 
 Dye (final int type)
 
 Dye (final Material type)
 
 Dye (final int type, final byte data)
 
 Dye (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 ()
 
Dye 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 dye.

Definition at line 9 of file Dye.java.

Constructor & Destructor Documentation

org.bukkit.material.Dye.Dye ( )

Definition at line 10 of file Dye.java.

References org.bukkit.Material.INK_SACK.

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

Definition at line 14 of file Dye.java.

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

Definition at line 18 of file Dye.java.

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

Definition at line 22 of file Dye.java.

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

Definition at line 26 of file Dye.java.

Member Function Documentation

Dye org.bukkit.material.Dye.clone ( )

Definition at line 54 of file Dye.java.

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

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

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

Gets the current color of this dye.

Returns
DyeColor of this dye

Definition at line 35 of file Dye.java.

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

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

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

Sets the color of this dye.

Parameters
colorNew color of this dye

Definition at line 44 of file Dye.java.

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

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

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