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

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


Sign

public Sign(Material type)

Sign

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


Sign

@Deprecated
public Sign(Material type,
                       byte data)
Deprecated. Magic value

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.