Package 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
-
-
Constructor Summary
Constructors Constructor Description RedstoneTorch()RedstoneTorch(Material type)RedstoneTorch(Material type, byte data)Deprecated.Magic value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RedstoneTorchclone()booleanisPowered()Gets the current state of this Material, indicating if it's powered or unpoweredStringtoString()-
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, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
RedstoneTorch
public RedstoneTorch()
-
RedstoneTorch
public RedstoneTorch(Material type)
-
RedstoneTorch
@Deprecated public RedstoneTorch(Material type, byte data)
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
-
Method Detail
-
isPowered
public boolean isPowered()
Gets the current state of this Material, indicating if it's powered or unpowered
-
toString
public String toString()
- Overrides:
toStringin classSimpleAttachableMaterialData
-
clone
public RedstoneTorch clone()
-
-