Class ExtendedRails

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
DetectorRail, PoweredRail

@Deprecated(since="1.13", forRemoval=true) public class ExtendedRails extends Rails
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.
This is the superclass for the DetectorRail and PoweredRail classes
  • Constructor Details

    • ExtendedRails

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

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

    • isCurve

      public boolean isCurve()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      isCurve in class Rails
      Returns:
      the whether this track is set as a curve
    • getConvertedData

      @Deprecated(since="1.6.2") protected byte getConvertedData()
      Deprecated.
      Magic value
      Return the data without the extended properties used by PoweredRail and DetectorRail. Overridden in ExtendedRails
      Overrides:
      getConvertedData in class Rails
      Returns:
      the data without the extended part
    • setDirection

      public void setDirection(BlockFace face, boolean isOnSlope)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: Rails
      Set the direction of these tracks

      Note that tracks are bidirectional and that the direction returned is the ascending direction if the track is set on a slope. If it is set as a curve, the corner of the track should be supplied.

      Overrides:
      setDirection in class Rails
      Parameters:
      face - the direction the track should be facing
      isOnSlope - whether or not the track should be on a slope
    • clone

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