java.lang.Cloneable
public class Coal extends MaterialData
Constructor | Description |
---|---|
Coal() |
|
Coal(int type) |
Deprecated.
Magic value
|
Coal(int type,
byte data) |
Deprecated.
Magic value
|
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, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public Coal()
public Coal(CoalType type)
@Deprecated public Coal(int type)
type
- the raw type idpublic Coal(Material type)
@Deprecated public Coal(int type, byte data)
type
- the raw type iddata
- the raw data value@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 MaterialData
public Coal clone()
clone
in class MaterialData
Copyright © 2018. All rights reserved.