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 Details

    • WoodenStep

      public WoodenStep()
    • WoodenStep

      @Deprecated public WoodenStep​(int type)
      Deprecated.
      Magic value
      Parameters:
      type - the raw type id
    • WoodenStep

      public WoodenStep​(TreeSpecies species)
    • WoodenStep

      public WoodenStep​(TreeSpecies species, boolean inv)
    • WoodenStep

      @Deprecated public WoodenStep​(int type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the raw type id
      data - the raw data value
    • WoodenStep

      @Deprecated public WoodenStep​(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - the raw data value
  • Method Details

    • 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 java.lang.String toString()
      Overrides:
      toString in class MaterialData