public class DetectorRail extends ExtendedRails implements PressureSensor
构造器和说明 |
---|
DetectorRail() |
DetectorRail(int type)
已过时。
不安全的参数
|
DetectorRail(int type,
byte data)
已过时。
不安全的参数
|
DetectorRail(Material type) |
DetectorRail(Material type,
byte data)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
DetectorRail |
clone() |
boolean |
isPressed() |
void |
setPressed(boolean isPressed) |
getConvertedData, isCurve, setDirection
getDirection, isOnSlope, toString
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public DetectorRail()
@Deprecated public DetectorRail(int type)
type
- the raw type idpublic DetectorRail(Material type)
@Deprecated public DetectorRail(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public DetectorRail(Material type, byte data)
type
- the typedata
- the raw data valuepublic boolean isPressed()
isPressed
在接口中 PressureSensor
public void setPressed(boolean isPressed)
public DetectorRail clone()
clone
在类中 ExtendedRails