org.bukkit.material
Class Torch

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.SimpleAttachableMaterialData
          extended by org.bukkit.material.Torch
All Implemented Interfaces:
Cloneable, Attachable, Directional
Direct Known Subclasses:
RedstoneTorch

public class Torch
extends SimpleAttachableMaterialData

MaterialData for torches


Constructor Summary
Torch()
           
Torch(int type)
           
Torch(int type, byte data)
           
Torch(Material type)
           
Torch(Material type, byte data)
           
 
Method Summary
 Torch clone()
           
 BlockFace getAttachedFace()
          Gets the face that this block is attached on
 void setFacingDirection(BlockFace face)
          Sets the direction that this block is facing in
 
Methods inherited from class org.bukkit.material.SimpleAttachableMaterialData
getFacing, 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

Torch

public Torch()

Torch

public Torch(int type)

Torch

public Torch(Material type)

Torch

public Torch(int type,
             byte data)

Torch

public Torch(Material type,
             byte data)
Method Detail

getAttachedFace

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

Returns:
BlockFace attached to

setFacingDirection

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

Parameters:
face - The facing direction

clone

public Torch clone()
Overrides:
clone in class SimpleAttachableMaterialData


Copyright © 2013. All Rights Reserved.