Package org.bukkit.material
Class ExtendedRails
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Rails
org.bukkit.material.ExtendedRails
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
DetectorRail,PoweredRail
public class ExtendedRails extends Rails
This is the superclass for the
DetectorRail and PoweredRail
classes-
Constructor Summary
Constructors Constructor Description ExtendedRails(int type)Deprecated.Magic valueExtendedRails(int type, byte data)Deprecated.Magic valueExtendedRails(Material type)ExtendedRails(Material type, byte data)Deprecated.Magic value -
Method Summary
Modifier and Type Method Description ExtendedRailsclone()protected bytegetConvertedData()Deprecated.Magic valuebooleanisCurve()voidsetDirection(BlockFace face, boolean isOnSlope)Set the direction of these tracksMethods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
ExtendedRails
@Deprecated public ExtendedRails(int type)Deprecated.Magic value- Parameters:
type- the raw type id
-
ExtendedRails
-
ExtendedRails
@Deprecated public ExtendedRails(int type, byte data)Deprecated.Magic value- Parameters:
type- the raw type iddata- the raw data value
-
ExtendedRails
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
-
Method Details
-
isCurve
public boolean isCurve() -
getConvertedData
@Deprecated protected byte getConvertedData()Deprecated.Magic valueDescription copied from class:RailsReturn the data without the extended properties used byPoweredRailandDetectorRail. Overridden inExtendedRails- Overrides:
getConvertedDatain classRails- Returns:
- the data without the extended part
-
setDirection
Description copied from class:RailsSet the direction of these tracksNote 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:
setDirectionin classRails- Parameters:
face- the direction the track should be facingisOnSlope- whether or not the track should be on a slope
-
clone
-