Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.TreeSpecies Enum Reference

Public Member Functions

byte getData ()
 

Static Public Member Functions

static TreeSpecies getByData (final byte data)
 
 [static initializer]
 

Public Attributes

 GENERIC =(0x0)
 
 REDWOOD =(0x1)
 
 BIRCH =(0x2)
 
 JUNGLE =(0x3)
 
 ACACIA =(0x4)
 
 DARK_OAK =(0x5)
 

Detailed Description

Represents the different species of trees regardless of size.

Definition at line 10 of file TreeSpecies.java.

Member Function Documentation

static TreeSpecies org.bukkit.TreeSpecies.getByData ( final byte  data)
static

Gets the TreeSpecies with the given data value

Parameters
dataData value to fetch
Returns
The TreeSpecies representing the given value, or null if it doesn't exist
Deprecated:
Magic value

Definition at line 65 of file TreeSpecies.java.

Referenced by org.bukkit.material.Leaves.getSpecies(), org.bukkit.material.WoodenStep.getSpecies(), and org.bukkit.material.Tree.getSpecies().

65  {
66  return BY_DATA.get(data);
67  }
byte org.bukkit.TreeSpecies.getData ( )

Gets the associated data value representing this species

Returns
A byte containing the data value of this tree species
Deprecated:
Magic value

Definition at line 52 of file TreeSpecies.java.

Referenced by org.bukkit.material.Leaves.setSpecies(), org.bukkit.material.WoodenStep.setSpecies(), and org.bukkit.material.Tree.setSpecies().

52  {
53  return data;
54  }

Member Data Documentation

org.bukkit.TreeSpecies.ACACIA =(0x4)

Represents acacia trees.

Definition at line 31 of file TreeSpecies.java.

org.bukkit.TreeSpecies.BIRCH =(0x2)

Represents birches.

Definition at line 23 of file TreeSpecies.java.

Referenced by org.bukkit.material.FlowerPot.getContents(), and org.bukkit.material.FlowerPot.setContents().

org.bukkit.TreeSpecies.DARK_OAK =(0x5)

Represents dark oak trees.

Definition at line 35 of file TreeSpecies.java.

org.bukkit.TreeSpecies.GENERIC =(0x0)

Represents the common tree species.

Definition at line 15 of file TreeSpecies.java.

Referenced by org.bukkit.material.FlowerPot.getContents(), and org.bukkit.material.FlowerPot.setContents().

org.bukkit.TreeSpecies.JUNGLE =(0x3)

Represents jungle trees.

Definition at line 27 of file TreeSpecies.java.

Referenced by org.bukkit.material.FlowerPot.getContents().

org.bukkit.TreeSpecies.REDWOOD =(0x1)

Represents the darker barked/leaved tree species.

Definition at line 19 of file TreeSpecies.java.

Referenced by org.bukkit.material.FlowerPot.getContents(), and org.bukkit.material.FlowerPot.setContents().


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