org.bukkit.material
Class DirectionalContainer

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.DirectionalContainer
All Implemented Interfaces:
Cloneable, Directional
Direct Known Subclasses:
Chest, EnderChest, FurnaceAndDispenser

public class DirectionalContainer
extends MaterialData
implements Directional

Represents a furnace or a dispenser.


Constructor Summary
DirectionalContainer(int type)
           
DirectionalContainer(int type, byte data)
           
DirectionalContainer(Material type)
           
DirectionalContainer(Material type, byte data)
           
 
Method Summary
 DirectionalContainer clone()
           
 BlockFace getFacing()
          Gets the direction this block is facing
 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

DirectionalContainer

public DirectionalContainer(int type)

DirectionalContainer

public DirectionalContainer(Material type)

DirectionalContainer

public DirectionalContainer(int type,
                            byte data)

DirectionalContainer

public DirectionalContainer(Material type,
                            byte data)
Method Detail

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

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 this block is facing

toString

public String toString()
Overrides:
toString in class MaterialData

clone

public DirectionalContainer clone()
Overrides:
clone in class MaterialData


Copyright © 2013. All Rights Reserved.