Package org.bukkit.material
Class Coal
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.Coal
-
- All Implemented Interfaces:
Cloneable
public class Coal extends MaterialData
Represents the different types of coals.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Coalclone()CoalTypegetType()Gets the current type of this coalvoidsetType(CoalType type)Sets the type of this coalStringtoString()-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
Coal
public Coal()
-
Coal
public Coal(CoalType type)
-
Coal
public Coal(Material type)
-
Coal
@Deprecated public Coal(Material type, byte data)
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
-
Method Detail
-
getType
public CoalType getType()
Gets the current type of this coal- Returns:
- CoalType of this coal
-
setType
public void setType(CoalType type)
Sets the type of this coal- Parameters:
type- New type of this coal
-
toString
public String toString()
- Overrides:
toStringin classMaterialData
-
clone
public Coal clone()
- Overrides:
clonein classMaterialData
-
-