org.bukkit.material
Class ExtendedRails

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.Rails
          extended by org.bukkit.material.ExtendedRails
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
DetectorRail, PoweredRail

public class ExtendedRails
extends Rails

This is the superclass for the DetectorRail and PoweredRail classes


Constructor Summary
ExtendedRails(int type)
          Deprecated. Magic value
ExtendedRails(int type, byte data)
          Deprecated. Magic value
ExtendedRails(Material type)
           
ExtendedRails(Material type, byte data)
          Deprecated. Magic value
 
Method Summary
 ExtendedRails clone()
           
protected  byte getConvertedData()
          Deprecated. Magic value
 boolean isCurve()
           
 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.
 
Methods inherited from class org.bukkit.material.Rails
getDirection, isOnSlope, toString
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtendedRails

@Deprecated
public ExtendedRails(int type)
Deprecated. Magic value


ExtendedRails

public ExtendedRails(Material type)

ExtendedRails

@Deprecated
public ExtendedRails(int type,
                                byte data)
Deprecated. Magic value


ExtendedRails

@Deprecated
public ExtendedRails(Material type,
                                byte data)
Deprecated. Magic value

Method Detail

isCurve

public boolean isCurve()
Overrides:
isCurve in class Rails
Returns:
the whether this track is set as a curve

getConvertedData

@Deprecated
protected byte getConvertedData()
Deprecated. Magic value

Description copied from class: Rails
Return the data without the extended properties used by PoweredRail and DetectorRail. Overridden in ExtendedRails

Overrides:
getConvertedData in class Rails
Returns:
the data without the extended part

setDirection

public void setDirection(BlockFace face,
                         boolean isOnSlope)
Description copied from class: Rails
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. If it is set as a curve, the corner of the track should be supplied.

Overrides:
setDirection in class Rails
Parameters:
face - the direction the track should be facing
isOnSlope - whether or not the track should be on a slope

clone

public ExtendedRails clone()
Overrides:
clone in class Rails


Copyright © 2013. All Rights Reserved.