public class Coal extends MaterialData
构造器和说明 |
---|
Coal() |
Coal(CoalType type) |
Coal(int type)
已过时。
不安全的参数
|
Coal(int type,
byte data)
已过时。
不安全的参数
|
Coal(Material type) |
Coal(Material type,
byte data)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
Coal |
clone() |
CoalType |
getType()
获取这个煤的种类.
|
void |
setType(CoalType type)
设置这个煤的种类.
|
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@Deprecated public Coal(Material type, byte data)
type
- the typedata
- the raw datapublic CoalType getType()
原文:Gets the current type of this coal
public void setType(CoalType type)
原文:Sets the type of this coal
type
- 这个煤的新种类public java.lang.String toString()
toString
在类中 MaterialData
public Coal clone()
clone
在类中 MaterialData