Package org.bukkit.material
Class Stairs
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Stairs
- All Implemented Interfaces:
java.lang.Cloneable
,Directional
public class Stairs extends MaterialData implements Directional
Represents stairs.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Stairs
clone()
BlockFace
getAscendingDirection()
BlockFace
getDescendingDirection()
BlockFace
getFacing()
Gets the direction this block is facingboolean
isInverted()
Test if step is invertedvoid
setFacingDirection(BlockFace face)
Set the direction the stair part of the block is facingvoid
setInverted(boolean inv)
Set step inverted statejava.lang.String
toString()
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Stairs
@Deprecated public Stairs(int type)Deprecated.Magic value- Parameters:
type
- the raw type id
-
Stairs
-
Stairs
@Deprecated public Stairs(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
Stairs
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
getAscendingDirection
- Returns:
- the direction the stairs ascend towards
-
getDescendingDirection
- Returns:
- the direction the stairs descend towards
-
setFacingDirection
Set the direction the stair part of the block is facing- Specified by:
setFacingDirection
in interfaceDirectional
- Parameters:
face
- The facing direction
-
getFacing
Description copied from interface:Directional
Gets the direction this block is facing- Specified by:
getFacing
in 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 java.lang.String toString()- Overrides:
toString
in classMaterialData
-
clone
- Overrides:
clone
in classMaterialData
-