|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.material.MaterialData
org.bukkit.material.Rails
public class Rails
Represents minecart rails.
| Constructor Summary | |
|---|---|
Rails()
|
|
Rails(int type)
Deprecated. Magic value |
|
Rails(int type,
byte data)
Deprecated. Magic value |
|
Rails(Material type)
|
|
Rails(Material type,
byte data)
Deprecated. Magic value |
|
| Method Summary | |
|---|---|
Rails |
clone()
|
protected byte |
getConvertedData()
Deprecated. Magic value |
BlockFace |
getDirection()
|
boolean |
isCurve()
|
boolean |
isOnSlope()
|
void |
setDirection(BlockFace face,
boolean isOnSlope)
Set the direction of these tracks |
String |
toString()
|
| Methods inherited from class org.bukkit.material.MaterialData |
|---|
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Rails()
@Deprecated public Rails(int type)
public Rails(Material type)
@Deprecated
public Rails(int type,
byte data)
@Deprecated
public Rails(Material type,
byte data)
| Method Detail |
|---|
public 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 in class 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 in class MaterialData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||