Package org.bukkit.material
Class Coal
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Coal
- All Implemented Interfaces:
java.lang.Cloneable
public class Coal extends MaterialData
Represents the different types of coals.
-
Constructor Summary
-
Method Summary
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Coal
public Coal() -
Coal
-
Coal
@Deprecated public Coal(int type)Deprecated.Magic value- Parameters:
type
- the raw type id
-
Coal
-
Coal
@Deprecated public Coal(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
Coal
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
getType
Gets the current type of this coal- Returns:
- CoalType of this coal
-
setType
Sets the type of this coal- Parameters:
type
- New type of this coal
-
toString
public java.lang.String toString()- Overrides:
toString
in classMaterialData
-
clone
- Overrides:
clone
in classMaterialData
-