Package org.bukkit.material
Class Tree
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Wood
org.bukkit.material.Tree
- All Implemented Interfaces:
- Cloneable
Deprecated, for removal: This API element is subject to removal in a future version.
Represents the different types of Tree block that face a direction.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final BlockFaceDeprecated, for removal: This API element is subject to removal in a future version.protected static final MaterialDeprecated, for removal: This API element is subject to removal in a future version.Fields inherited from class org.bukkit.material.WoodDEFAULT_SPECIES
- 
Constructor SummaryConstructorsConstructorDescriptionTree()Deprecated, for removal: This API element is subject to removal in a future version.Constructs a tree block.Deprecated, for removal: This API element is subject to removal in a future version.Constructs a tree block of the given type.Deprecated.Magic valueTree(Material type, TreeSpecies species) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a tree block of the given type and tree species.Tree(Material type, TreeSpecies species, BlockFace dir) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a tree block of the given type and tree species, and facing the given direction.Tree(TreeSpecies species) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a tree block of the given tree species.Tree(TreeSpecies species, BlockFace dir) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a tree block of the given tree species, and facing the given direction.
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Get direction of the logvoidsetDirection(BlockFace dir) Deprecated, for removal: This API element is subject to removal in a future version.Set direction of the logtoString()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.bukkit.material.WoodgetSpecies, setSpeciesMethods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Field Details- 
DEFAULT_TYPEDeprecated, for removal: This API element is subject to removal in a future version.
- 
DEFAULT_DIRECTIONDeprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Constructor Details- 
Treepublic Tree()Deprecated, for removal: This API element is subject to removal in a future version.Constructs a tree block.
- 
TreeDeprecated, for removal: This API element is subject to removal in a future version.Constructs a tree block of the given tree species.- Parameters:
- species- the species of the tree block
 
- 
TreeDeprecated, for removal: This API element is subject to removal in a future version.Constructs a tree block of the given tree species, and facing the given direction.- Parameters:
- species- the species of the tree block
- dir- the direction the tree block is facing
 
- 
TreeDeprecated, for removal: This API element is subject to removal in a future version.Constructs a tree block of the given type.- Parameters:
- type- the type of tree block
 
- 
TreeDeprecated, for removal: This API element is subject to removal in a future version.Constructs a tree block of the given type and tree species.- Parameters:
- type- the type of tree block
- species- the species of the tree block
 
- 
TreeDeprecated, for removal: This API element is subject to removal in a future version.Constructs a tree block of the given type and tree species, and facing the given direction.- Parameters:
- type- the type of tree block
- species- the species of the tree block
- dir- the direction the tree block is facing
 
- 
TreeDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
getDirectionDeprecated, for removal: This API element is subject to removal in a future version.Get direction of the log- Returns:
- one of:
 - BlockFace.TOP for upright (default)
- BlockFace.NORTH (east-west)
- BlockFace.WEST (north-south)
- BlockFace.SELF (directionless)
 
 
- 
setDirectionDeprecated, for removal: This API element is subject to removal in a future version.Set direction of the log- Parameters:
- dir- - direction of end of log (BlockFace.SELF for no direction)
 
- 
toStringDeprecated, for removal: This API element is subject to removal in a future version.
- 
cloneDeprecated, for removal: This API element is subject to removal in a future version.
 
- 
BlockData.