Package org.bukkit.material
Class DetectorRail
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Rails
org.bukkit.material.ExtendedRails
org.bukkit.material.DetectorRail
- All Implemented Interfaces:
Cloneable
,PressureSensor
@Deprecated(forRemoval=true,
since="1.13")
public class DetectorRail
extends ExtendedRails
implements PressureSensor
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a detector rail
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.DetectorRail
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.DetectorRail
(Material type, byte data) Deprecated.Magic value -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.void
setPressed
(boolean isPressed) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.bukkit.material.ExtendedRails
getConvertedData, isCurve, setDirection
Methods inherited from class org.bukkit.material.Rails
getDirection, isOnSlope, toString
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
DetectorRail
public DetectorRail()Deprecated, for removal: This API element is subject to removal in a future version. -
DetectorRail
Deprecated, for removal: This API element is subject to removal in a future version. -
DetectorRail
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
isPressed
public boolean isPressed()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isPressed
in interfacePressureSensor
-
setPressed
public void setPressed(boolean isPressed) Deprecated, for removal: This API element is subject to removal in a future version. -
clone
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
clone
in classExtendedRails
-
BlockData
.