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

Public Member Functions

 Dye (final int type)
 
 Dye (final Material type)
 
 Dye (final int type, final byte data)
 
 Dye (final Material type, final byte data)
 
DyeColor getColor ()
 
void setColor (DyeColor color)
 
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 ()
 
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 dye

Definition at line 9 of file Dye.java.

Constructor & Destructor Documentation

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

Definition at line 19 of file Dye.java.

19  {
20  super(type);
21  }
org.bukkit.material.Dye.Dye ( final int  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 32 of file Dye.java.

32  {
33  super(type, data);
34  }
org.bukkit.material.Dye.Dye ( final Material  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 41 of file Dye.java.

41  {
42  super(type, data);
43  }

Member Function Documentation

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

Gets the current color of this dye

Returns
DyeColor of this dye

Implements org.bukkit.material.Colorable.

Definition at line 50 of file Dye.java.

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

50  {
51  return DyeColor.getByDyeData(getData());
52  }
void org.bukkit.material.Dye.setColor ( DyeColor  color)

Sets the color of this dye

Parameters
colorNew color of this dye

Implements org.bukkit.material.Colorable.

Definition at line 59 of file Dye.java.

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

59  {
60  setData(color.getDyeData());
61  }

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