|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.material.MaterialData org.bukkit.material.Stairs
public class Stairs
Represents stairs.
Constructor Summary | |
---|---|
Stairs(int type)
|
|
Stairs(int type,
byte data)
|
|
Stairs(Material type)
|
|
Stairs(Material type,
byte data)
|
Method Summary | |
---|---|
Stairs |
clone()
|
BlockFace |
getAscendingDirection()
|
BlockFace |
getDescendingDirection()
|
BlockFace |
getFacing()
Gets the direction this block is facing |
boolean |
isInverted()
Test if step is inverted |
void |
setFacingDirection(BlockFace face)
Set the direction the stair part of the block is facing |
void |
setInverted(boolean inv)
Set step inverted state |
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 |
---|
public Stairs(int type)
public Stairs(Material type)
public Stairs(int type, byte data)
public Stairs(Material type, byte data)
Method Detail |
---|
public BlockFace getAscendingDirection()
public BlockFace getDescendingDirection()
public void setFacingDirection(BlockFace face)
setFacingDirection
in interface Directional
face
- The facing directionpublic BlockFace getFacing()
Directional
getFacing
in interface Directional
public boolean isInverted()
public void setInverted(boolean inv)
inv
- - true if step is inverted (top half), false if step is normal (bottom half)public String toString()
toString
in class MaterialData
public Stairs clone()
clone
in class MaterialData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |