org.bukkit.material
Class RedstoneTorch

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

public class RedstoneTorch
extends Torch
implements Redstone

Represents a redstone torch


Constructor Summary
RedstoneTorch()
           
RedstoneTorch(int type)
           
RedstoneTorch(int type, byte data)
           
RedstoneTorch(Material type)
           
RedstoneTorch(Material type, byte data)
           
 
Method Summary
 RedstoneTorch clone()
           
 boolean isPowered()
          Gets the current state of this Material, indicating if it's powered or unpowered
 String toString()
           
 
Methods inherited from class org.bukkit.material.Torch
getAttachedFace, setFacingDirection
 
Methods inherited from class org.bukkit.material.SimpleAttachableMaterialData
getFacing
 
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

RedstoneTorch

public RedstoneTorch()

RedstoneTorch

public RedstoneTorch(int type)

RedstoneTorch

public RedstoneTorch(Material type)

RedstoneTorch

public RedstoneTorch(int type,
                     byte data)

RedstoneTorch

public RedstoneTorch(Material type,
                     byte data)
Method Detail

isPowered

public boolean isPowered()
Gets the current state of this Material, indicating if it's powered or unpowered

Specified by:
isPowered in interface Redstone
Returns:
true if powered, otherwise false

toString

public String toString()
Overrides:
toString in class SimpleAttachableMaterialData

clone

public RedstoneTorch clone()
Overrides:
clone in class Torch


Copyright © 2013. All Rights Reserved.