CloneableDetectorRail, PoweredRailBlockData.@Deprecated public class ExtendedRails extends Rails
DetectorRail and PoweredRail
classes| Constructor | Description |
|---|---|
ExtendedRails(Material type) |
Deprecated.
|
ExtendedRails(Material type,
byte data) |
Deprecated.
Magic value
|
| Modifier and Type | Method | Description |
|---|---|---|
ExtendedRails |
clone() |
Deprecated.
|
protected byte |
getConvertedData() |
Deprecated.
Magic value
|
boolean |
isCurve() |
Deprecated.
|
void |
setDirection(BlockFace face,
boolean isOnSlope) |
Deprecated.
Set the direction of these tracks
|
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStackfinalize, getClass, notify, notifyAll, wait, wait, waitgetDirection, isOnSlope, toStringpublic ExtendedRails(Material type)
@Deprecated public ExtendedRails(Material type, byte data)
type - the typedata - the raw data valuepublic boolean isCurve()
@Deprecated protected byte getConvertedData()
RailsPoweredRail and DetectorRail. Overridden in ExtendedRailsgetConvertedData in class Railspublic void setDirection(BlockFace face, boolean isOnSlope)
RailsNote 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.
setDirection in class Railsface - the direction the track should be facingisOnSlope - whether or not the track should be on a slopepublic ExtendedRails clone()
Copyright © 2019. All rights reserved.