Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.material.Tree Class Reference

Represents the different types of Trees. More...

+ Inheritance diagram for org.bukkit.material.Tree:
+ Collaboration diagram for org.bukkit.material.Tree:

Public Member Functions

 Tree ()
 
 Tree (TreeSpecies species)
 
 Tree (TreeSpecies species, BlockFace dir)
 
 Tree (final int type)
 
 Tree (final Material type)
 
 Tree (final int type, final byte data)
 
 Tree (final Material type, final byte data)
 
TreeSpecies getSpecies ()
 Gets the current species of this tree.
 
void setSpecies (TreeSpecies species)
 Sets the species of this tree.
 
BlockFace getDirection ()
 Get direction of the log.
 
void setDirection (BlockFace dir)
 Set direction of the log.
 
String toString ()
 
Tree clone ()
 
- Public Member Functions inherited from org.bukkit.material.MaterialData
 MaterialData (final int type)
 
 MaterialData (final Material type)
 
 MaterialData (final int type, final byte data)
 
 MaterialData (final Material type, final byte data)
 
byte getData ()
 Gets the raw data in this material.
 
void setData (byte data)
 Sets the raw data of this material.
 
Material getItemType ()
 Gets the Material that this MaterialData represents.
 
int getItemTypeId ()
 Gets the Material Id that this MaterialData represents.
 
ItemStack toItemStack ()
 Creates a new ItemStack based on this MaterialData.
 
ItemStack toItemStack (int amount)
 Creates a new ItemStack based on this MaterialData.
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 

Detailed Description

Represents the different types of Trees.

Definition at line 10 of file Tree.java.

Constructor & Destructor Documentation

org.bukkit.material.Tree.Tree ( )

Definition at line 11 of file Tree.java.

References org.bukkit.Material.LOG.

org.bukkit.material.Tree.Tree ( TreeSpecies  species)

Definition at line 15 of file Tree.java.

References org.bukkit.material.Tree.setSpecies().

org.bukkit.material.Tree.Tree ( TreeSpecies  species,
BlockFace  dir 
)
org.bukkit.material.Tree.Tree ( final int  type)

Definition at line 26 of file Tree.java.

org.bukkit.material.Tree.Tree ( final Material  type)

Definition at line 30 of file Tree.java.

org.bukkit.material.Tree.Tree ( final int  type,
final byte  data 
)

Definition at line 34 of file Tree.java.

org.bukkit.material.Tree.Tree ( final Material  type,
final byte  data 
)

Definition at line 38 of file Tree.java.

Member Function Documentation

Tree org.bukkit.material.Tree.clone ( )

Definition at line 111 of file Tree.java.

References org.bukkit.material.Tree.clone().

Referenced by org.bukkit.material.Tree.clone().

BlockFace org.bukkit.material.Tree.getDirection ( )

Get direction of the log.

Returns
BlockFace.TOP for upright (default), BlockFace.NORTH (east-west), BlockFace.WEST (north-sout), BlockFace.SELF (directionless)

Definition at line 65 of file Tree.java.

References org.bukkit.material.MaterialData.getData(), org.bukkit.block.BlockFace.NORTH, org.bukkit.block.BlockFace.SELF, org.bukkit.block.BlockFace.UP, and org.bukkit.block.BlockFace.WEST.

Referenced by org.bukkit.material.Tree.toString().

TreeSpecies org.bukkit.material.Tree.getSpecies ( )

Gets the current species of this tree.

Returns
TreeSpecies of this tree

Definition at line 47 of file Tree.java.

References org.bukkit.TreeSpecies.getByData(), and org.bukkit.material.MaterialData.getData().

Referenced by org.bukkit.material.Tree.toString().

void org.bukkit.material.Tree.setDirection ( BlockFace  dir)

Set direction of the log.

Parameters
dir- direction of end of log (BlockFace.SELF for no direction)

Definition at line 82 of file Tree.java.

References org.bukkit.material.MaterialData.getData(), and org.bukkit.material.MaterialData.setData().

Referenced by org.bukkit.material.Tree.Tree().

void org.bukkit.material.Tree.setSpecies ( TreeSpecies  species)

Sets the species of this tree.

Parameters
speciesNew species of this tree

Definition at line 56 of file Tree.java.

References org.bukkit.material.MaterialData.getData(), org.bukkit.TreeSpecies.getData(), and org.bukkit.material.MaterialData.setData().

Referenced by org.bukkit.material.Tree.Tree().

String org.bukkit.material.Tree.toString ( )

The documentation for this class was generated from the following file: