public class Tree extends MaterialData
| Constructor and Description |
|---|
Tree() |
Tree(int type)
Deprecated.
Magic value
|
Tree(int type,
byte data)
Deprecated.
Magic value
|
Tree(Material type) |
Tree(Material type,
byte data)
Deprecated.
Magic value
|
Tree(TreeSpecies species) |
Tree(TreeSpecies species,
BlockFace dir) |
| Modifier and Type | Method and Description |
|---|---|
Tree |
clone() |
BlockFace |
getDirection()
Get direction of the log
|
TreeSpecies |
getSpecies()
Gets the current species of this tree
|
void |
setDirection(BlockFace dir)
Set direction of the log
|
void |
setSpecies(TreeSpecies species)
Sets the species of this tree
|
String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic Tree()
public Tree(TreeSpecies species)
public Tree(TreeSpecies species, BlockFace dir)
@Deprecated public Tree(int type)
public Tree(Material type)
@Deprecated public Tree(int type, byte data)
@Deprecated public Tree(Material type, byte data)
public TreeSpecies getSpecies()
public void setSpecies(TreeSpecies species)
species - New species of this treepublic BlockFace getDirection()
public void setDirection(BlockFace dir)
dir - - direction of end of log (BlockFace.SELF for no direction)public String toString()
toString in class MaterialDatapublic Tree clone()
clone in class MaterialDataCopyright © 2015. All rights reserved.