Cloneable
public 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
|
String |
toString() |
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
public 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 String toString()
toString
in class MaterialData
public Coal clone()
clone
in class MaterialData
Copyright © 2019. All rights reserved.