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

Represents a detector rail. More...

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

Public Member Functions

 DetectorRail ()
 
 DetectorRail (final int type)
 
 DetectorRail (final Material type)
 
 DetectorRail (final int type, final byte data)
 
 DetectorRail (final Material type, final byte data)
 
boolean isPressed ()
 
void setPressed (boolean isPressed)
 
DetectorRail clone ()
 
- Public Member Functions inherited from org.bukkit.material.ExtendedRails
 ExtendedRails (final int type)
 
 ExtendedRails (final Material type)
 
 ExtendedRails (final int type, final byte data)
 
 ExtendedRails (final Material type, final byte data)
 
boolean isCurve ()
 
void setDirection (BlockFace face, boolean isOnSlope)
 
ExtendedRails clone ()
 
- Public Member Functions inherited from org.bukkit.material.Rails
 Rails ()
 
 Rails (final int type)
 
 Rails (final Material type)
 
 Rails (final int type, final byte data)
 
 Rails (final Material type, final byte data)
 
boolean isOnSlope ()
 
boolean isCurve ()
 
BlockFace getDirection ()
 
String toString ()
 
void setDirection (BlockFace face, boolean isOnSlope)
 Set the direction of these tracks
Note that tracks are bidirectional and that the direction returned is the ascending direction if the track is set on a slope.
 
Rails 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.PressureSensor
boolean isPressed ()
 

Additional Inherited Members

- Protected Member Functions inherited from org.bukkit.material.ExtendedRails
byte getConvertedData ()
 

Detailed Description

Represents a detector rail.

Definition at line 8 of file DetectorRail.java.

Constructor & Destructor Documentation

org.bukkit.material.DetectorRail.DetectorRail ( )

Definition at line 9 of file DetectorRail.java.

References org.bukkit.Material.DETECTOR_RAIL.

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

Definition at line 13 of file DetectorRail.java.

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

Definition at line 17 of file DetectorRail.java.

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

Definition at line 21 of file DetectorRail.java.

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

Definition at line 25 of file DetectorRail.java.

Member Function Documentation

DetectorRail org.bukkit.material.DetectorRail.clone ( )
boolean org.bukkit.material.DetectorRail.isPressed ( )

Definition at line 29 of file DetectorRail.java.

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

void org.bukkit.material.DetectorRail.setPressed ( boolean  isPressed)

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