Class PoweredRail

All Implemented Interfaces:
Cloneable, Redstone

@Deprecated(since="1.13", forRemoval=true) public class PoweredRail extends ExtendedRails implements Redstone
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 powered rail
  • Constructor Details

    • PoweredRail

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

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

      @Deprecated(since="1.6.2") public PoweredRail(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - the raw data value
  • Method Details

    • isPowered

      public boolean isPowered()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Redstone
      Gets the current state of this Material, indicating if it's powered or unpowered
      Specified by:
      isPowered in interface Redstone
      Returns:
      true if powered, otherwise false
    • setPowered

      public void setPowered(boolean isPowered)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set whether this PoweredRail should be powered or not.
      Parameters:
      isPowered - whether or not the rail is powered
    • clone

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