类 ExtendedRails
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Rails
org.bukkit.material.ExtendedRails
- 所有已实现的接口:
Cloneable
- 直接已知子类:
DetectorRail,PoweredRail
这是
DetectorRail 和 PoweredRail 的父类.-
构造器概要
构造器构造器说明ExtendedRails(int type) 已过时。不安全的参数ExtendedRails(int type, byte data) 已过时。不安全的参数ExtendedRails(Material type) ExtendedRails(Material type, byte data) 已过时。不安全的参数 -
方法概要
修饰符和类型方法说明clone()protected byte已过时。不安全的参数booleanisCurve()voidsetDirection(BlockFace face, boolean isOnSlope) 设置这个轨道的方向.从类继承的方法 org.bukkit.material.Rails
getDirection, isOnSlope, toString从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
ExtendedRails
已过时。不安全的参数- 参数:
type- the raw type id
-
ExtendedRails
-
ExtendedRails
已过时。不安全的参数- 参数:
type- the raw type iddata- the raw data value
-
ExtendedRails
已过时。不安全的参数- 参数:
type- the typedata- the raw data value
-
-
方法详细资料
-
isCurve
public boolean isCurve() -
getConvertedData
已过时。不安全的参数从类复制的说明:Rails返回没有使用PoweredRail和DetectorRail扩展属性的数据值. 于ExtendedRails重写.原文:Return the data without the extended properties used by
PoweredRailandDetectorRail. Overridden inExtendedRails- 覆盖:
getConvertedData在类中Rails- 返回:
- 没有扩展属性的数据值
-
setDirection
从类复制的说明: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在类中Rails- 参数:
face- 轨道的朝向isOnSlope- 轨道应不应该在斜坡上
-
clone
-