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)
          Deprecated. Magic value
Leaves(int type, byte data)
          Deprecated. Magic value
Leaves(Material type)
           
Leaves(Material type, byte data)
          Deprecated. Magic value
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

@Deprecated
public Leaves(int type)
Deprecated. Magic value


Leaves

public Leaves(Material type)

Leaves

@Deprecated
public Leaves(int type,
                         byte data)
Deprecated. Magic value


Leaves

@Deprecated
public Leaves(Material type,
                         byte data)
Deprecated. Magic value

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.