Package org.bukkit.material
Class WoodenStep
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.Wood
-
- org.bukkit.material.WoodenStep
-
- All Implemented Interfaces:
Cloneable
public class WoodenStep extends Wood
Represents the different types of wooden steps.- See Also:
Material.LEGACY_WOOD_STEP
-
-
Field Summary
Fields Modifier and Type Field Description protected static boolean
DEFAULT_INVERTED
protected static Material
DEFAULT_TYPE
-
Fields inherited from class org.bukkit.material.Wood
DEFAULT_SPECIES
-
-
Constructor Summary
Constructors Constructor Description WoodenStep()
Constructs a wooden step.WoodenStep(Material type, byte data)
Deprecated.Magic valueWoodenStep(TreeSpecies species)
Constructs a wooden step of the given tree species.WoodenStep(TreeSpecies species, boolean inv)
Constructs a wooden step of the given type and tree species, either inverted or not.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WoodenStep
clone()
boolean
isInverted()
Test if step is invertedvoid
setInverted(boolean inv)
Set step inverted stateString
toString()
-
Methods inherited from class org.bukkit.material.Wood
getSpecies, setSpecies
-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Field Detail
-
DEFAULT_TYPE
protected static final Material DEFAULT_TYPE
-
DEFAULT_INVERTED
protected static final boolean DEFAULT_INVERTED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WoodenStep
public WoodenStep()
Constructs a wooden step.
-
WoodenStep
public WoodenStep(TreeSpecies species)
Constructs a wooden step of the given tree species.- Parameters:
species
- the species of the wooden step
-
WoodenStep
public WoodenStep(TreeSpecies species, boolean inv)
Constructs a wooden step of the given type and tree species, either inverted or not.- Parameters:
species
- the species of the wooden stepinv
- true the step is at the top of the block
-
WoodenStep
@Deprecated public WoodenStep(Material type, byte data)
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Detail
-
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()
-
-