Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.material.RedstoneTorch Class Reference

Represents a redstone torch. More...

+ Inheritance diagram for org.bukkit.material.RedstoneTorch:
+ Collaboration diagram for org.bukkit.material.RedstoneTorch:

Public Member Functions

 RedstoneTorch ()
 
 RedstoneTorch (final int type)
 
 RedstoneTorch (final Material type)
 
 RedstoneTorch (final int type, final byte data)
 
 RedstoneTorch (final Material type, final byte data)
 
boolean isPowered ()
 Gets the current state of this Material, indicating if it's powered or unpowered.
 
String toString ()
 
RedstoneTorch clone ()
 
- Public Member Functions inherited from org.bukkit.material.Torch
 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 ()
 Gets the face that this block is attached on.
 
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 ()
 Gets the raw data in this material.
 
void setData (byte data)
 Sets the raw data of this material.
 
Material getItemType ()
 Gets the Material that this MaterialData represents.
 
int getItemTypeId ()
 Gets the Material Id that this MaterialData represents.
 
ItemStack toItemStack ()
 Creates a new ItemStack based on this MaterialData.
 
ItemStack toItemStack (int amount)
 Creates a new ItemStack based on this MaterialData.
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 
- Public Member Functions inherited from org.bukkit.material.Attachable
BlockFace getAttachedFace ()
 Gets the face that this block is attached on.
 
- Public Member Functions inherited from org.bukkit.material.Directional
void setFacingDirection (BlockFace face)
 Sets the direction that this block is facing in.
 
BlockFace getFacing ()
 Gets the direction this block is facing.
 
- Public Member Functions inherited from org.bukkit.material.Redstone
boolean isPowered ()
 Gets the current state of this Material, indicating if it's powered or unpowered.
 

Detailed Description

Represents a redstone torch.

Definition at line 8 of file RedstoneTorch.java.

Constructor & Destructor Documentation

org.bukkit.material.RedstoneTorch.RedstoneTorch ( )

Definition at line 9 of file RedstoneTorch.java.

References org.bukkit.Material.REDSTONE_TORCH_ON.

org.bukkit.material.RedstoneTorch.RedstoneTorch ( final int  type)

Definition at line 13 of file RedstoneTorch.java.

org.bukkit.material.RedstoneTorch.RedstoneTorch ( final Material  type)

Definition at line 17 of file RedstoneTorch.java.

org.bukkit.material.RedstoneTorch.RedstoneTorch ( final int  type,
final byte  data 
)

Definition at line 21 of file RedstoneTorch.java.

org.bukkit.material.RedstoneTorch.RedstoneTorch ( final Material  type,
final byte  data 
)

Definition at line 25 of file RedstoneTorch.java.

Member Function Documentation

RedstoneTorch org.bukkit.material.RedstoneTorch.clone ( )
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

Definition at line 35 of file RedstoneTorch.java.

References org.bukkit.material.MaterialData.getItemType(), and org.bukkit.Material.REDSTONE_TORCH_ON.

Referenced by org.bukkit.material.RedstoneTorch.toString().

String org.bukkit.material.RedstoneTorch.toString ( )

Definition at line 40 of file RedstoneTorch.java.

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


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