Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.material.Leaves Class Reference
Inheritance diagram for org.bukkit.material.Leaves:
org.bukkit.material.MaterialData

Public Member Functions

 Leaves (TreeSpecies species)
 
 Leaves (final int type)
 
 Leaves (final Material type)
 
 Leaves (final int type, final byte data)
 
 Leaves (final Material type, final byte data)
 
TreeSpecies getSpecies ()
 
void setSpecies (TreeSpecies species)
 
String toString ()
 
Leaves 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 ()
 
void setData (byte data)
 
Material getItemType ()
 
int getItemTypeId ()
 
ItemStack toItemStack ()
 
ItemStack toItemStack (int amount)
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 

Detailed Description

Represents the different types of leaves.

Definition at line 9 of file Leaves.java.

Constructor & Destructor Documentation

org.bukkit.material.Leaves.Leaves ( final int  type)
Deprecated:
Magic value

Definition at line 24 of file Leaves.java.

24  {
25  super(type);
26  }
org.bukkit.material.Leaves.Leaves ( final int  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 37 of file Leaves.java.

37  {
38  super(type, data);
39  }
org.bukkit.material.Leaves.Leaves ( final Material  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 46 of file Leaves.java.

46  {
47  super(type, data);
48  }

Member Function Documentation

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

Gets the current species of this leave

Returns
TreeSpecies of this leave

Definition at line 55 of file Leaves.java.

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

55  {
56  return TreeSpecies.getByData((byte) (getData() & 3));
57  }
void org.bukkit.material.Leaves.setSpecies ( TreeSpecies  species)

Sets the species of this leave

Parameters
speciesNew species of this leave

Definition at line 64 of file Leaves.java.

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

64  {
65  setData(species.getData());
66  }

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