public class ExtendedRails extends Rails
DetectorRail 和 PoweredRail 的父类.| 构造器和说明 |
|---|
ExtendedRails(int type)
已过时。
不安全的参数
|
ExtendedRails(int type,
byte data)
已过时。
不安全的参数
|
ExtendedRails(Material type) |
ExtendedRails(Material type,
byte data)
已过时。
不安全的参数
|
| 限定符和类型 | 方法和说明 |
|---|---|
ExtendedRails |
clone() |
protected byte |
getConvertedData()
已过时。
不安全的参数
|
boolean |
isCurve() |
void |
setDirection(BlockFace face,
boolean isOnSlope)
设置这个轨道的方向.
|
getDirection, isOnSlope, toStringequals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack@Deprecated public ExtendedRails(int type)
type - the raw type idpublic ExtendedRails(Material type)
@Deprecated
public ExtendedRails(int type,
byte data)
type - the raw type iddata - the raw data value@Deprecated public ExtendedRails(Material type, byte data)
type - the typedata - the raw data value@Deprecated protected byte getConvertedData()
RailsPoweredRail 和 DetectorRail 扩展属性的数据值. 于ExtendedRails重写.
原文:Return the data without the extended properties used by PoweredRail and DetectorRail. Overridden in ExtendedRails
getConvertedData 在类中 Railspublic void setDirection(BlockFace face, boolean isOnSlope)
Rails注意轨道是双向的,并且如果铁轨设置在斜坡上将返回上升方向.如果这个铁轨被作为弯道,
原文:Set the direction of these tracks
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 在类中 Railsface - 轨道的朝向isOnSlope - 轨道应不应该在斜坡上public ExtendedRails clone()