Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.material.RedstoneTorch Class Reference
Inheritance diagram for org.bukkit.material.RedstoneTorch:
org.bukkit.material.Torch org.bukkit.material.Redstone org.bukkit.material.SimpleAttachableMaterialData org.bukkit.material.MaterialData org.bukkit.material.Attachable org.bukkit.material.Directional

Public Member Functions

 RedstoneTorch (final int type)
 
 RedstoneTorch (final Material type)
 
 RedstoneTorch (final int type, final byte data)
 
 RedstoneTorch (final Material type, final byte data)
 
boolean isPowered ()
 
String toString ()
 
RedstoneTorch clone ()
 
- Public Member Functions inherited from org.bukkit.material.Torch
 Torch (final int type)
 
 Torch (final Material type)
 
 Torch (final int type, final byte data)
 
 Torch (final Material type, final byte data)
 
BlockFace getAttachedFace ()
 
void setFacingDirection (BlockFace face)
 
Torch clone ()
 
- Public Member Functions inherited from org.bukkit.material.SimpleAttachableMaterialData
 SimpleAttachableMaterialData (int type)
 
 SimpleAttachableMaterialData (int type, BlockFace direction)
 
 SimpleAttachableMaterialData (Material type, BlockFace direction)
 
 SimpleAttachableMaterialData (Material type)
 
 SimpleAttachableMaterialData (int type, byte data)
 
 SimpleAttachableMaterialData (Material type, byte data)
 
BlockFace getFacing ()
 
String toString ()
 
SimpleAttachableMaterialData clone ()
 
- Public Member Functions inherited from org.bukkit.material.MaterialData
 MaterialData (final int type)
 
 MaterialData (final Material type)
 
 MaterialData (final int type, final byte data)
 
 MaterialData (final Material type, final byte data)
 
byte getData ()
 
void setData (byte data)
 
Material getItemType ()
 
int getItemTypeId ()
 
ItemStack toItemStack ()
 
ItemStack toItemStack (int amount)
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 

Detailed Description

Represents a redstone torch

Definition at line 8 of file RedstoneTorch.java.

Constructor & Destructor Documentation

org.bukkit.material.RedstoneTorch.RedstoneTorch ( final int  type)
Deprecated:
Magic value

Definition at line 18 of file RedstoneTorch.java.

18  {
19  super(type);
20  }
org.bukkit.material.RedstoneTorch.RedstoneTorch ( final int  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 31 of file RedstoneTorch.java.

31  {
32  super(type, data);
33  }
org.bukkit.material.RedstoneTorch.RedstoneTorch ( final Material  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 40 of file RedstoneTorch.java.

40  {
41  super(type, data);
42  }

Member Function Documentation

boolean org.bukkit.material.RedstoneTorch.isPowered ( )

Gets the current state of this Material, indicating if it's powered or unpowered

Returns
true if powered, otherwise false

Implements org.bukkit.material.Redstone.

Definition at line 50 of file RedstoneTorch.java.

References org.bukkit.material.MaterialData.getItemType().

50  {
51  return getItemType() == Material.REDSTONE_TORCH_ON;
52  }

The documentation for this class was generated from the following file: