org.bukkit.material
Class WoodenStep

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

public class WoodenStep
extends MaterialData

Represents the different types of wooden steps.


Constructor Summary
WoodenStep()
           
WoodenStep(int type)
          Deprecated. Magic value
WoodenStep(int type, byte data)
          Deprecated. Magic value
WoodenStep(Material type, byte data)
          Deprecated. Magic value
WoodenStep(TreeSpecies species)
           
WoodenStep(TreeSpecies species, boolean inv)
           
 
Method Summary
 WoodenStep clone()
           
 TreeSpecies getSpecies()
          Gets the current species of this tree
 boolean isInverted()
          Test if step is inverted
 void setInverted(boolean inv)
          Set step inverted state
 void setSpecies(TreeSpecies species)
          Sets the species of this tree
 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

WoodenStep

public WoodenStep()

WoodenStep

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


WoodenStep

public WoodenStep(TreeSpecies species)

WoodenStep

public WoodenStep(TreeSpecies species,
                  boolean inv)

WoodenStep

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


WoodenStep

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

Method Detail

getSpecies

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

Returns:
TreeSpecies of this tree

setSpecies

public void setSpecies(TreeSpecies species)
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

public WoodenStep clone()
Overrides:
clone in class MaterialData

toString

public String toString()
Overrides:
toString in class MaterialData


Copyright © 2013. All Rights Reserved.