Package org.bukkit.material
Class Leaves
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Leaves
- All Implemented Interfaces:
java.lang.Cloneable
public class Leaves extends MaterialData
Represents the different types of leaves.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Leaves
clone()
TreeSpecies
getSpecies()
Gets the current species of this leavevoid
setSpecies(TreeSpecies species)
Sets the species of this leavejava.lang.String
toString()
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Leaves
public Leaves() -
Leaves
-
Leaves
@Deprecated public Leaves(int type)Deprecated.Magic value- Parameters:
type
- the raw type id
-
Leaves
-
Leaves
@Deprecated public Leaves(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
Leaves
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
getSpecies
Gets the current species of this leave- Returns:
- TreeSpecies of this leave
-
setSpecies
Sets the species of this leave- Parameters:
species
- New species of this leave
-
toString
public java.lang.String toString()- Overrides:
toString
in classMaterialData
-
clone
- Overrides:
clone
in classMaterialData
-