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

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


SimpleAttachableMaterialData

public SimpleAttachableMaterialData(int type,
                                    BlockFace direction)

SimpleAttachableMaterialData

public SimpleAttachableMaterialData(Material type,
                                    BlockFace direction)

SimpleAttachableMaterialData

public SimpleAttachableMaterialData(Material type)

SimpleAttachableMaterialData

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


SimpleAttachableMaterialData

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

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.