public class ExtendedRails extends Rails
DetectorRail
and PoweredRail
classesコンストラクタと説明 |
---|
ExtendedRails(int type)
非推奨です。
Magic value
|
ExtendedRails(int type,
byte data)
非推奨です。
Magic value
|
ExtendedRails(Material type) |
ExtendedRails(Material type,
byte data)
非推奨です。
Magic value
|
修飾子とタイプ | メソッドと説明 |
---|---|
ExtendedRails |
clone() |
protected byte |
getConvertedData()
非推奨です。
Magic value
|
boolean |
isCurve() |
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.
|
getDirection, isOnSlope, toString
equals, 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 valuepublic boolean isCurve()
@Deprecated protected byte getConvertedData()
Rails
PoweredRail
and DetectorRail
. Overridden in ExtendedRails
getConvertedData
クラス内 Rails
public void setDirection(BlockFace face, boolean isOnSlope)
Rails
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
- the direction the track should be facingisOnSlope
- whether or not the track should be on a slopepublic ExtendedRails clone()
Copyright © 2016. All rights reserved.