org.bukkit.material
Class RedstoneTorch
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
org.bukkit.material.Torch
org.bukkit.material.RedstoneTorch
- All Implemented Interfaces:
- Cloneable, Attachable, Directional, Redstone
public class RedstoneTorch
- extends Torch
- implements Redstone
Represents a redstone torch
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)
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.