public class WoodenStep extends Wood
Material.WOOD_STEP
Modifier and Type | Field and Description |
---|---|
protected static boolean |
DEFAULT_INVERTED |
protected static Material |
DEFAULT_TYPE |
DEFAULT_SPECIES
Constructor and Description |
---|
WoodenStep()
Constructs a wooden step.
|
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)
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.
|
Modifier and Type | Method and Description |
---|---|
WoodenStep |
clone() |
boolean |
isInverted()
Test if step is inverted
|
void |
setInverted(boolean inv)
Set step inverted state
|
String |
toString() |
getSpecies, setSpecies
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
protected static final Material DEFAULT_TYPE
protected static final boolean DEFAULT_INVERTED
public WoodenStep()
public WoodenStep(TreeSpecies species)
species
- the species of the wooden steppublic WoodenStep(TreeSpecies species, boolean inv)
species
- the species of the wooden stepinv
- true the step is at the top of the block@Deprecated public WoodenStep(int type)
type
- the raw type id@Deprecated public WoodenStep(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public WoodenStep(Material type, byte data)
type
- the typedata
- the raw data valuepublic boolean isInverted()
public void setInverted(boolean inv)
inv
- - true if step is inverted (top half), false if step is normal
(bottom half)public WoodenStep clone()
Copyright © 2017. All rights reserved.