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:
java.lang.Cloneable
,Attachable
,Directional
,Redstone
public class RedstoneTorch extends Torch implements Redstone
Represents a redstone torch
-
Constructor Summary
Constructors Constructor Description RedstoneTorch()
RedstoneTorch(int type)
Deprecated.Magic valueRedstoneTorch(int type, byte data)
Deprecated.Magic valueRedstoneTorch(Material type)
RedstoneTorch(Material type, byte data)
Deprecated.Magic value -
Method Summary
Modifier and Type Method Description RedstoneTorch
clone()
boolean
isPowered()
Gets the current state of this Material, indicating if it's powered or unpoweredjava.lang.String
toString()
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
RedstoneTorch
public RedstoneTorch() -
RedstoneTorch
@Deprecated public RedstoneTorch(int type)Deprecated.Magic value- Parameters:
type
- the raw type id
-
RedstoneTorch
-
RedstoneTorch
@Deprecated public RedstoneTorch(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
RedstoneTorch
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
isPowered
public boolean isPowered()Gets the current state of this Material, indicating if it's powered or unpowered -
toString
public java.lang.String toString()- Overrides:
toString
in classSimpleAttachableMaterialData
-
clone
-