Package org.bukkit.material
Class Coal
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.Coal
-
- All Implemented Interfaces:
Cloneable
@Deprecated public class Coal extends MaterialData
Deprecated.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.Represents the different types of coals.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Coal
clone()
Deprecated.CoalType
getType()
Deprecated.Gets the current type of this coalvoid
setType(CoalType type)
Deprecated.Sets the type of this coalString
toString()
Deprecated.-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
Coal
public Coal()
Deprecated.
-
Coal
public Coal(CoalType type)
Deprecated.
-
Coal
public Coal(Material type)
Deprecated.
-
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()
Deprecated.Gets the current type of this coal- Returns:
- CoalType of this coal
-
setType
public void setType(CoalType type)
Deprecated.Sets the type of this coal- Parameters:
type
- New type of this coal
-
toString
public String toString()
Deprecated.- Overrides:
toString
in classMaterialData
-
clone
public Coal clone()
Deprecated.- Overrides:
clone
in classMaterialData
-
-