java.lang.Cloneable
DetectorRail
, PoweredRail
public class ExtendedRails extends Rails
DetectorRail
and PoweredRail
classesConstructor | Description |
---|---|
ExtendedRails(Material type) |
|
ExtendedRails(Material type,
byte data) |
Deprecated.
Magic value
|
Modifier and Type | Method | Description |
---|---|---|
ExtendedRails |
clone() |
|
protected byte |
getConvertedData() |
Deprecated.
Magic value
|
boolean |
isCurve() |
|
void |
setDirection(BlockFace face,
boolean isOnSlope) |
Set the direction of these tracks
|
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
finalize, getClass, notify, notifyAll, wait, wait, wait
getDirection, isOnSlope, toString
public ExtendedRails(Material type)
@Deprecated public ExtendedRails(Material type, byte data)
type
- the typedata
- the raw data valuepublic boolean isCurve()
@Deprecated protected byte getConvertedData()
Rails
PoweredRail
and DetectorRail
. Overridden in ExtendedRails
getConvertedData
in class Rails
public void setDirection(BlockFace face, boolean isOnSlope)
Rails
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.
setDirection
in class Rails
face
- the direction the track should be facingisOnSlope
- whether or not the track should be on a slopepublic ExtendedRails clone()
Copyright © 2018. All rights reserved.