Package org.bukkit.material
Class Rails
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Rails
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- ExtendedRails
Deprecated.
Represents minecart rails.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated.protected byteDeprecated.Magic valueDeprecated.booleanisCurve()Deprecated.booleanDeprecated.voidsetDirection(BlockFace face, boolean isOnSlope) Deprecated.Set the direction of these trackstoString()Deprecated.Methods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Constructor Details- 
Railspublic Rails()Deprecated.
- 
RailsDeprecated.
- 
RailsDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
isOnSlopepublic boolean isOnSlope()Deprecated.- Returns:
- the whether this track is set on a slope
 
- 
isCurvepublic boolean isCurve()Deprecated.- Returns:
- the whether this track is set as a curve
 
- 
getDirectionDeprecated.- Returns:
- the direction these tracks are set
     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 is returned. 
 
- 
toStringDeprecated.- Overrides:
- toStringin class- MaterialData
 
- 
getConvertedDataDeprecated.Magic valueReturn the data without the extended properties used byPoweredRailandDetectorRail. Overridden inExtendedRails- Returns:
- the data without the extended part
 
- 
setDirectionDeprecated.Set 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. - Parameters:
- face- the direction the track should be facing
- isOnSlope- whether or not the track should be on a slope
 
- 
cloneDeprecated.- Overrides:
- clonein class- MaterialData
 
 
- 
BlockData.