类 Rails
- 所有已实现的接口:
Cloneable
- 直接已知子类:
ExtendedRails
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明clone()已过时。protected byte已过时。魔法值已过时。booleanisCurve()已过时。boolean已过时。voidsetDirection(BlockFace face, boolean isOnSlope) 已过时。设置这些铁轨的方向。toString()已过时。从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
Rails
public Rails()已过时。 -
Rails
已过时。 -
Rails
已过时。魔法值原文:Magic value
- 参数:
type- 物品类型data- 原始数据值
-
-
方法详细资料
-
isOnSlope
public boolean isOnSlope()已过时。- 返回:
- 该铁轨是否设置在斜坡上
原文:the whether this track is set on a slope
-
isCurve
public boolean isCurve()已过时。- 返回:
- 该铁轨是否设置为弯道
原文:the whether this track is set as a curve
-
getDirection
已过时。- 返回:
- 这些铁轨设置的方向
注意铁轨是双向的,如果铁轨设置在斜坡上,返回的方向是上升方向。 如果设置为弯道,则返回铁轨的拐角方向。
原文: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.
-
toString
已过时。- 覆盖:
toString在类中MaterialData
-
getConvertedData
已过时。魔法值原文:Return the data without the extended properties used by
PoweredRailandDetectorRail. Overridden inExtendedRails原文:Magic value
- 返回:
- 不包含扩展部分的数据
-
setDirection
已过时。设置这些铁轨的方向。注意铁轨是双向的,如果铁轨设置在斜坡上,返回的方向是上升方向。 如果设置为弯道,则应提供铁轨的拐角方向。
- 参数:
face- 铁轨应朝向的方向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.
-
clone
已过时。- 覆盖:
clone在类中MaterialData
-
BlockData。