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

Represents the different types of coals. More...

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

Public Member Functions

 Coal ()
 
 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 ()
 Gets the current type of this coal.
 
void setType (CoalType type)
 Sets the type of this coal.
 
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 ()
 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 ()
 

Detailed Description

Represents the different types of coals.

Definition at line 9 of file Coal.java.

Constructor & Destructor Documentation

org.bukkit.material.Coal.Coal ( )

Definition at line 10 of file Coal.java.

References org.bukkit.Material.COAL.

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

Definition at line 14 of file Coal.java.

References org.bukkit.material.Coal.setType().

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

Definition at line 19 of file Coal.java.

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

Definition at line 23 of file Coal.java.

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

Definition at line 27 of file Coal.java.

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

Definition at line 31 of file Coal.java.

Member Function Documentation

Coal org.bukkit.material.Coal.clone ( )

Definition at line 59 of file Coal.java.

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

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

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

Gets the current type of this coal.

Returns
CoalType of this coal

Definition at line 40 of file Coal.java.

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

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

void org.bukkit.material.Coal.setType ( CoalType  type)

Sets the type of this coal.

Parameters
typeNew type of this coal

Definition at line 49 of file Coal.java.

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

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

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

Definition at line 54 of file Coal.java.

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


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