Package org.bukkit.material
Class WoodenStep
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.WoodenStep
- All Implemented Interfaces:
java.lang.Cloneable
public class WoodenStep extends MaterialData
Represents the different types of wooden steps.
-
Constructor Summary
Constructors Constructor Description WoodenStep()
WoodenStep(int type)
Deprecated.Magic valueWoodenStep(int type, byte data)
Deprecated.Magic valueWoodenStep(Material type, byte data)
Deprecated.Magic valueWoodenStep(TreeSpecies species)
WoodenStep(TreeSpecies species, boolean inv)
-
Method Summary
Modifier and Type Method Description WoodenStep
clone()
TreeSpecies
getSpecies()
Gets the current species of this treeboolean
isInverted()
Test if step is invertedvoid
setInverted(boolean inv)
Set step inverted statevoid
setSpecies(TreeSpecies species)
Sets the species of this treejava.lang.String
toString()
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
WoodenStep
public WoodenStep() -
WoodenStep
@Deprecated public WoodenStep(int type)Deprecated.Magic value- Parameters:
type
- the raw type id
-
WoodenStep
-
WoodenStep
-
WoodenStep
@Deprecated public WoodenStep(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
WoodenStep
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
getSpecies
Gets the current species of this tree- Returns:
- TreeSpecies of this tree
-
setSpecies
Sets the species of this tree- Parameters:
species
- New species of this tree
-
isInverted
public boolean isInverted()Test if step is inverted- Returns:
- true if inverted (top half), false if normal (bottom half)
-
setInverted
public void setInverted(boolean inv)Set step inverted state- Parameters:
inv
- - true if step is inverted (top half), false if step is normal (bottom half)
-
clone
- Overrides:
clone
in classMaterialData
-
toString
public java.lang.String toString()- Overrides:
toString
in classMaterialData
-