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

Public Member Functions

 Coal (CoalType type)
 
 Coal (final int type)
 
 Coal (final Material type)
 
 Coal (final int type, final byte data)
 
 Coal (final Material type, final byte data)
 
CoalType getType ()
 
void setType (CoalType type)
 
String toString ()
 
Coal 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 the different types of coals.

Definition at line 9 of file Coal.java.

Constructor & Destructor Documentation

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

Definition at line 24 of file Coal.java.

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

Definition at line 37 of file Coal.java.

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

Definition at line 46 of file Coal.java.

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

Member Function Documentation

CoalType org.bukkit.material.Coal.getType ( )

Gets the current type of this coal

Returns
CoalType of this coal

Definition at line 55 of file Coal.java.

References org.bukkit.CoalType.getByData(), and org.bukkit.material.MaterialData.getData().

55  {
56  return CoalType.getByData(getData());
57  }
void org.bukkit.material.Coal.setType ( CoalType  type)

Sets the type of this coal

Parameters
typeNew type of this coal

Definition at line 64 of file Coal.java.

References org.bukkit.CoalType.getData(), and org.bukkit.material.MaterialData.setData().

64  {
65  setData(type.getData());
66  }

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