public class Tree extends Wood
Material.LOG
,
Material.LOG_2
Modifier and Type | Field and Description |
---|---|
protected static BlockFace |
DEFAULT_DIRECTION |
protected static Material |
DEFAULT_TYPE |
DEFAULT_SPECIES
Constructor and Description |
---|
Tree()
Constructs a tree block.
|
Tree(int type)
Deprecated.
Magic value
|
Tree(int type,
byte data)
Deprecated.
Magic value
|
Tree(Material type)
Constructs a tree block of the given type.
|
Tree(Material type,
byte data)
Deprecated.
Magic value
|
Tree(Material type,
TreeSpecies species)
Constructs a tree block of the given type and tree species.
|
Tree(Material type,
TreeSpecies species,
BlockFace dir)
Constructs a tree block of the given type and tree species, and facing
the given direction.
|
Tree(TreeSpecies species)
Constructs a tree block of the given tree species.
|
Tree(TreeSpecies species,
BlockFace dir)
Constructs a tree block of the given tree species, and facing the given
direction.
|
Modifier and Type | Method and Description |
---|---|
Tree |
clone() |
BlockFace |
getDirection()
Get direction of the log
|
void |
setDirection(BlockFace dir)
Set direction of the log
|
String |
toString() |
getSpecies, setSpecies
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
protected static final Material DEFAULT_TYPE
protected static final BlockFace DEFAULT_DIRECTION
public Tree()
public Tree(TreeSpecies species)
species
- the species of the tree blockpublic Tree(TreeSpecies species, BlockFace dir)
species
- the species of the tree blockdir
- the direction the tree block is facing@Deprecated public Tree(int type)
type
- the raw type idpublic Tree(Material type)
type
- the type of tree blockpublic Tree(Material type, TreeSpecies species)
type
- the type of tree blockspecies
- the species of the tree blockpublic Tree(Material type, TreeSpecies species, BlockFace dir)
type
- the type of tree blockspecies
- the species of the tree blockdir
- the direction the tree block is facing@Deprecated public Tree(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public Tree(Material type, byte data)
type
- the typedata
- the raw data valuepublic BlockFace getDirection()
public void setDirection(BlockFace dir)
dir
- - direction of end of log (BlockFace.SELF for no direction)Copyright © 2017. All rights reserved.