java.lang.Cloneablepublic class Coal extends MaterialData
| Constructor | Description | 
|---|---|
| Coal() | |
| Coal(CoalType type) | |
| Coal(Material type) | |
| Coal(Material type,
    byte data) | Deprecated.
 Magic value | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Coal | clone() | |
| CoalType | getType() | Gets the current type of this coal | 
| void | setType(CoalType type) | Sets the type of this coal | 
| java.lang.String | toString() | 
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStackpublic Coal()
public Coal(CoalType type)
public Coal(Material type)
@Deprecated public Coal(Material type, byte data)
type - the typedata - the raw data valuepublic CoalType getType()
public void setType(CoalType type)
type - New type of this coalpublic java.lang.String toString()
toString in class MaterialDatapublic Coal clone()
clone in class MaterialDataCopyright © 2018. All rights reserved.