Package org.bukkit.material
Class ExtendedRails
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.Rails
-
- org.bukkit.material.ExtendedRails
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
DetectorRail,PoweredRail
@Deprecated public class ExtendedRails extends Rails
Deprecated.all usage of MaterialData is deprecated and subject to removal. UseBlockData.This is the superclass for theDetectorRailandPoweredRailclasses
-
-
Constructor Summary
Constructors Constructor Description ExtendedRails(Material type)Deprecated.ExtendedRails(Material type, byte data)Deprecated.Magic value
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExtendedRailsclone()Deprecated.protected bytegetConvertedData()Deprecated.Magic valuebooleanisCurve()Deprecated.voidsetDirection(BlockFace face, boolean isOnSlope)Deprecated.Set the direction of these tracks-
Methods inherited from class org.bukkit.material.Rails
getDirection, isOnSlope, toString
-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
ExtendedRails
public ExtendedRails(Material type)
Deprecated.
-
ExtendedRails
@Deprecated public ExtendedRails(Material type, byte data)
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
-
Method Detail
-
isCurve
public boolean isCurve()
Deprecated.
-
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
public void setDirection(BlockFace face, boolean isOnSlope)
Deprecated.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
public ExtendedRails clone()
Deprecated.
-
-