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