Class DetectorRail

All Implemented Interfaces:
Cloneable, PressureSensor

@Deprecated(since="1.13", forRemoval=true) public class DetectorRail extends ExtendedRails implements PressureSensor
Deprecated, for removal: This API element is subject to removal in a future version.
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents a detector rail
  • Constructor Details

    • DetectorRail

      public DetectorRail()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • DetectorRail

      public DetectorRail(Material type)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • DetectorRail

      @Deprecated(since="1.6.2") public DetectorRail(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - 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 interface PressureSensor
    • setPressed

      public void setPressed(boolean isPressed)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • clone

      public DetectorRail clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class ExtendedRails