Cloneable
BlockData
.@Deprecated public class Tree extends Wood
Material.LEGACY_LOG
,
Material.LEGACY_LOG_2
Modifier and Type | Field | Description |
---|---|---|
protected static BlockFace |
DEFAULT_DIRECTION |
Deprecated.
|
protected static Material |
DEFAULT_TYPE |
Deprecated.
|
DEFAULT_SPECIES
Constructor | Description |
---|---|
Tree() |
Deprecated.
Constructs a tree block.
|
Tree(Material type) |
Deprecated.
Constructs a tree block of the given type.
|
Tree(Material type,
byte data) |
Deprecated.
Magic value
|
Tree(Material type,
TreeSpecies species) |
Deprecated.
Constructs a tree block of the given type and tree species.
|
Tree(Material type,
TreeSpecies species,
BlockFace dir) |
Deprecated.
Constructs a tree block of the given type and tree species, and facing
the given direction.
|
Tree(TreeSpecies species) |
Deprecated.
Constructs a tree block of the given tree species.
|
Tree(TreeSpecies species,
BlockFace dir) |
Deprecated.
Constructs a tree block of the given tree species, and facing the given
direction.
|
Modifier and Type | Method | Description |
---|---|---|
Tree |
clone() |
Deprecated.
|
BlockFace |
getDirection() |
Deprecated.
Get direction of the log
|
void |
setDirection(BlockFace dir) |
Deprecated.
Set direction of the log
|
String |
toString() |
Deprecated.
|
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
finalize, getClass, notify, notifyAll, wait, wait, wait
getSpecies, setSpecies
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 facingpublic 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(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 © 2020. All rights reserved.