Cloneable
Leaves
, Sapling
, Tree
, WoodenStep
public class Wood extends MaterialData
Modifier and Type | Field | Description |
---|---|---|
protected static TreeSpecies |
DEFAULT_SPECIES |
|
protected static Material |
DEFAULT_TYPE |
Constructor | Description |
---|---|
Wood() |
Constructs a wood block.
|
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 | 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, hashCode, setData, toItemStack, toItemStack
protected static final Material DEFAULT_TYPE
protected static final TreeSpecies DEFAULT_SPECIES
public Wood()
public Wood(TreeSpecies species)
species
- the species of the wood blockpublic 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(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 MaterialData
public Wood clone()
clone
in class MaterialData
Copyright © 2020. All rights reserved.