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