类 Rails
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Rails
- 所有已实现的接口:
Cloneable
- 直接已知子类:
ExtendedRails
已过时。
Represents minecart rails.
-
构造器概要
-
方法概要
修饰符和类型方法说明clone()
已过时。protected byte
已过时。Magic value已过时。boolean
isCurve()
已过时。boolean
已过时。void
setDirection
(BlockFace face, boolean isOnSlope) 已过时。Set the direction of these trackstoString()
已过时。从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
Rails
public Rails()已过时。 -
Rails
已过时。 -
Rails
已过时。Magic value- 参数:
type
- the typedata
- the raw data value
-
-
方法详细资料
-
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
已过时。Magic valueReturn the data without the extended properties used byPoweredRail
andDetectorRail
. Overridden inExtendedRails
- 返回:
- the data without the extended part
-
setDirection
已过时。Set the direction of these tracksNote 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
- the direction the track should be facingisOnSlope
- whether or not the track should be on a slope
-
clone
已过时。- 覆盖:
clone
在类中MaterialData
-
BlockData
.