org.bukkit.material
Class SimpleAttachableMaterialData

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.SimpleAttachableMaterialData
All Implemented Interfaces:
Cloneable, Attachable, Directional
Direct Known Subclasses:
Button, Ladder, Lever, Torch, TrapDoor, TripwireHook

public abstract class SimpleAttachableMaterialData
extends MaterialData
implements Attachable

Simple utility class for attachable MaterialData subclasses


Constructor Summary
SimpleAttachableMaterialData(int type)
           
SimpleAttachableMaterialData(int type, BlockFace direction)
           
SimpleAttachableMaterialData(int type, byte data)
           
SimpleAttachableMaterialData(Material type)
           
SimpleAttachableMaterialData(Material type, BlockFace direction)
           
SimpleAttachableMaterialData(Material type, byte data)
           
 
Method Summary
 SimpleAttachableMaterialData clone()
           
 BlockFace getFacing()
          Gets the direction this block is facing
 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
 
Methods inherited from interface org.bukkit.material.Attachable
getAttachedFace
 
Methods inherited from interface org.bukkit.material.Directional
setFacingDirection
 

Constructor Detail

SimpleAttachableMaterialData

public SimpleAttachableMaterialData(int type)

SimpleAttachableMaterialData

public SimpleAttachableMaterialData(int type,
                                    BlockFace direction)

SimpleAttachableMaterialData

public SimpleAttachableMaterialData(Material type,
                                    BlockFace direction)

SimpleAttachableMaterialData

public SimpleAttachableMaterialData(Material type)

SimpleAttachableMaterialData

public SimpleAttachableMaterialData(int type,
                                    byte data)

SimpleAttachableMaterialData

public SimpleAttachableMaterialData(Material type,
                                    byte data)
Method Detail

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 SimpleAttachableMaterialData clone()
Overrides:
clone in class MaterialData


Copyright © 2013. All Rights Reserved.