org.bukkit.material
Class Stairs

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.Stairs
All Implemented Interfaces:
Cloneable, Directional

public class Stairs
extends MaterialData
implements Directional

Represents stairs.


Constructor Summary
Stairs(int type)
          Deprecated. Magic value
Stairs(int type, byte data)
          Deprecated. Magic value
Stairs(Material type)
           
Stairs(Material type, byte data)
          Deprecated. Magic value
 
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

Stairs

@Deprecated
public Stairs(int type)
Deprecated. Magic value


Stairs

public Stairs(Material type)

Stairs

@Deprecated
public Stairs(int type,
                         byte data)
Deprecated. Magic value


Stairs

@Deprecated
public Stairs(Material type,
                         byte data)
Deprecated. Magic 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:
setFacingDirection in interface Directional
Parameters:
face - The facing direction

getFacing

public BlockFace getFacing()
Description copied from interface: Directional
Gets the direction this block is facing

Specified by:
getFacing in interface Directional
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:
toString in class MaterialData

clone

public Stairs clone()
Overrides:
clone in class MaterialData


Copyright © 2013. All Rights Reserved.