|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.material.MaterialData org.bukkit.material.Tree
public class Tree
Represents the different types of Trees.
Constructor Summary | |
---|---|
Tree()
|
|
Tree(int type)
|
|
Tree(int type,
byte data)
|
|
Tree(Material type)
|
|
Tree(Material type,
byte data)
|
|
Tree(TreeSpecies species)
|
|
Tree(TreeSpecies species,
BlockFace dir)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class org.bukkit.material.MaterialData |
---|
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Tree()
public Tree(TreeSpecies species)
public Tree(TreeSpecies species, BlockFace dir)
public Tree(int type)
public Tree(Material type)
public Tree(int type, byte data)
public Tree(Material type, byte data)
Method Detail |
---|
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 MaterialData
public Tree clone()
clone
in class MaterialData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |