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

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


RedstoneTorch

public RedstoneTorch(Material type)

RedstoneTorch

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


RedstoneTorch

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

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.