org.bukkit.material
Class Leaves

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.Leaves
All Implemented Interfaces:
Cloneable

public class Leaves
extends MaterialData

Represents the different types of leaves.


Constructor Summary
Leaves()
           
Leaves(int type)
           
Leaves(int type, byte data)
           
Leaves(Material type)
           
Leaves(Material type, byte data)
           
Leaves(TreeSpecies species)
           
 
Method Summary
 Leaves clone()
           
 TreeSpecies getSpecies()
          Gets the current species of this leave
 void setSpecies(TreeSpecies species)
          Sets the species of this leave
 String toString()
           
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Leaves

public Leaves()

Leaves

public Leaves(TreeSpecies species)

Leaves

public Leaves(int type)

Leaves

public Leaves(Material type)

Leaves

public Leaves(int type,
              byte data)

Leaves

public Leaves(Material type,
              byte data)
Method Detail

getSpecies

public TreeSpecies getSpecies()
Gets the current species of this leave

Returns:
TreeSpecies of this leave

setSpecies

public void setSpecies(TreeSpecies species)
Sets the species of this leave

Parameters:
species - New species of this leave

toString

public String toString()
Overrides:
toString in class MaterialData

clone

public Leaves clone()
Overrides:
clone in class MaterialData


Copyright © 2013. All Rights Reserved.