public class DetectorRail extends ExtendedRails implements PressureSensor
| Constructor and Description | 
|---|
DetectorRail()  | 
DetectorRail(int type)
Deprecated. 
 
Magic value 
 | 
DetectorRail(int type,
            byte data)
Deprecated. 
 
Magic value 
 | 
DetectorRail(Material type)  | 
DetectorRail(Material type,
            byte data)
Deprecated. 
 
Magic value 
 | 
| Modifier and Type | Method and Description | 
|---|---|
DetectorRail | 
clone()  | 
boolean | 
isPressed()  | 
void | 
setPressed(boolean isPressed)  | 
getConvertedData, isCurve, setDirectiongetDirection, isOnSlope, toStringequals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic 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 in interface PressureSensorpublic void setPressed(boolean isPressed)
public DetectorRail clone()
clone in class ExtendedRailsCopyright © 2022. All rights reserved.