Package org.bukkit.material
Class Stairs
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.Stairs
-
- All Implemented Interfaces:
Cloneable,Directional
public class Stairs extends MaterialData implements Directional
Represents stairs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stairsclone()BlockFacegetAscendingDirection()BlockFacegetDescendingDirection()BlockFacegetFacing()Gets the direction this block is facingbooleanisInverted()Test if step is invertedvoidsetFacingDirection(BlockFace face)Set the direction the stair part of the block is facingvoidsetInverted(boolean inv)Set step inverted stateStringtoString()-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
Stairs
public Stairs(Material type)
-
Stairs
@Deprecated public Stairs(Material type, byte data)
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
-
Method Detail
-
getAscendingDirection
public BlockFace getAscendingDirection()
- Returns:
- the direction the stairs ascend towards
-
getDescendingDirection
public BlockFace getDescendingDirection()
- Returns:
- the direction the stairs descend towards
-
setFacingDirection
public void setFacingDirection(BlockFace face)
Set the direction the stair part of the block is facing- Specified by:
setFacingDirectionin interfaceDirectional- Parameters:
face- The facing direction
-
getFacing
public BlockFace getFacing()
Description copied from interface:DirectionalGets the direction this block is facing- Specified by:
getFacingin interfaceDirectional- Returns:
- the direction the stair part of the block is facing
-
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)
-
toString
public String toString()
- Overrides:
toStringin classMaterialData
-
clone
public Stairs clone()
- Overrides:
clonein classMaterialData
-
-