org.bukkit.material
Class Sign

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

public class Sign
extends MaterialData
implements Attachable

MaterialData for signs


Constructor Summary
Sign()
           
Sign(int type)
           
Sign(int type, byte data)
           
Sign(Material type)
           
Sign(Material type, byte data)
           
 
Method Summary
 Sign clone()
           
 BlockFace getAttachedFace()
          Gets the face that this block is attached on
 BlockFace getFacing()
          Gets the direction that this sign is currently facing
 boolean isWallSign()
          Check if this sign is attached to a wall
 void setFacingDirection(BlockFace face)
          Sets the direction that this block is facing in
 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

Sign

public Sign()

Sign

public Sign(int type)

Sign

public Sign(Material type)

Sign

public Sign(int type,
            byte data)

Sign

public Sign(Material type,
            byte data)
Method Detail

isWallSign

public boolean isWallSign()
Check if this sign is attached to a wall

Returns:
true if this sign is attached to a wall, false if set on top of a block

getAttachedFace

public BlockFace getAttachedFace()
Gets the face that this block is attached on

Specified by:
getAttachedFace in interface Attachable
Returns:
BlockFace attached to

getFacing

public BlockFace getFacing()
Gets the direction that this sign is currently facing

Specified by:
getFacing in interface Directional
Returns:
BlockFace indicating where this sign is facing

setFacingDirection

public void setFacingDirection(BlockFace face)
Description copied from interface: Directional
Sets the direction that this block is facing in

Specified by:
setFacingDirection in interface Directional
Parameters:
face - The facing direction

toString

public String toString()
Overrides:
toString in class MaterialData

clone

public Sign clone()
Overrides:
clone in class MaterialData


Copyright © 2013. All Rights Reserved.