public class Wood extends MaterialData
Material.WOOD, 
Material.SAPLING, 
Material.WOOD_DOUBLE_STEP| Modifier and Type | Field and Description | 
|---|---|
protected static TreeSpecies | 
DEFAULT_SPECIES  | 
protected static Material | 
DEFAULT_TYPE  | 
| Constructor and Description | 
|---|
Wood()
Constructs a wood block. 
 | 
Wood(int type)
Deprecated. 
 
Magic value 
 | 
Wood(int type,
    byte data)
Deprecated. 
 
Magic value 
 | 
Wood(Material type)
Constructs a wood block of the given type. 
 | 
Wood(Material type,
    byte data)
Deprecated. 
 
Magic value 
 | 
Wood(Material type,
    TreeSpecies species)
Constructs a wood block of the given type and tree species. 
 | 
Wood(TreeSpecies species)
Constructs a wood block of the given tree species. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Wood | 
clone()  | 
TreeSpecies | 
getSpecies()
Gets the current species of this wood block 
 | 
void | 
setSpecies(TreeSpecies species)
Sets the species of this wood block 
 | 
String | 
toString()  | 
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackprotected static final Material DEFAULT_TYPE
protected static final TreeSpecies DEFAULT_SPECIES
public Wood()
public Wood(TreeSpecies species)
species - the species of the wood block@Deprecated public Wood(int type)
type - the raw type idpublic Wood(Material type)
type - the type of wood blockpublic Wood(Material type, TreeSpecies species)
type - the type of wood blockspecies - the species of the wood block@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()
public void setSpecies(TreeSpecies species)
species - New species of this wood blockpublic String toString()
toString in class MaterialDatapublic Wood clone()
clone in class MaterialDataCopyright © 2021. All rights reserved.