public class Wood extends MaterialData
限定符和类型 | 字段和说明 |
---|---|
protected static TreeSpecies |
DEFAULT_SPECIES |
protected static Material |
DEFAULT_TYPE |
构造器和说明 |
---|
Wood()
构造本类.
|
Wood(int type)
已过时。
不安全的参数
|
Wood(int type,
byte data)
已过时。
不安全的参数
|
Wood(Material type)
以给定的物品种类构造本类.
|
Wood(Material type,
byte data)
已过时。
不安全的参数
|
Wood(Material type,
TreeSpecies species)
以给定的物品种类和树木种类构造本类.
|
Wood(TreeSpecies species)
以给定的树木种类构造本类.
|
限定符和类型 | 方法和说明 |
---|---|
Wood |
clone() |
TreeSpecies |
getSpecies()
获取这个木头的树木种类.
|
void |
setSpecies(TreeSpecies species)
设置木头的树木种类.
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
protected static final Material DEFAULT_TYPE
protected static final TreeSpecies DEFAULT_SPECIES
public Wood()
原文:Constructs a wood block.
public Wood(TreeSpecies species)
原文:Constructs a wood block of the given tree species.
species
- 木头的树木种类@Deprecated public Wood(int type)
type
- the raw type idpublic Wood(Material type)
原文:Constructs a wood block of the given type.
type
- 木头的物品种类public Wood(Material type, TreeSpecies species)
原文:Constructs a wood block of the given type and tree species.
type
- 木头的物品种类species
- 木头的树木种类@Deprecated public Wood(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public Wood(Material type, byte data)
type
- the typedata
- the raw data valuepublic TreeSpecies getSpecies()
原文:Gets the current species of this wood block
public void setSpecies(TreeSpecies species)
原文:Sets the species of this wood block
species
- 新种类public java.lang.String toString()
toString
在类中 MaterialData
public Wood clone()
clone
在类中 MaterialData