Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.CoalType Enum Reference

Public Member Functions

byte getData ()
 

Static Public Member Functions

static CoalType getByData (final byte data)
 
 [static initializer]
 

Public Attributes

 COAL =(0x0)
 
 CHARCOAL =(0x1)
 

Detailed Description

Represents the two types of coal

Definition at line 10 of file CoalType.java.

Member Function Documentation

static CoalType org.bukkit.CoalType.getByData ( final byte  data)
static

Gets the type of coal with the given data value

Parameters
dataData value to fetch
Returns
The CoalType representing the given value, or null if it doesn't exist
Deprecated:
Magic value

Definition at line 41 of file CoalType.java.

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

41  {
42  return BY_DATA.get(data);
43  }
byte org.bukkit.CoalType.getData ( )

Gets the associated data value representing this type of coal

Returns
A byte containing the data value of this coal type
Deprecated:
Magic value

Definition at line 28 of file CoalType.java.

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

28  {
29  return data;
30  }

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