程序包 org.bukkit.material

# 类 ExtendedRails

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Rails
org.bukkit.material.ExtendedRails

所有已实现的接口:
  `Cloneable`

直接已知子类:
  `DetectorRail`, `PoweredRail`

@Deprecated public class ExtendedRails extends Rails
已过时。
all usage of MaterialData is deprecated and subject to removal. Use `BlockData`.
This is the superclass for the `DetectorRail` and `PoweredRail` classes

- ## 构造器概要

  构造器
  构造器
  说明
  `ExtendedRails(Material type)`
  已过时。
  `ExtendedRails(Material type, byte data)`
  已过时。
  Magic value

- ## 方法概要

  修饰符和类型
  方法
  说明
  `ExtendedRails`
  `clone()`
  已过时。
  `protected byte`
  `getConvertedData()`
  已过时。
  Magic value
  `boolean`
  `isCurve()`
  已过时。
  `void`
  `setDirection(BlockFace face, boolean isOnSlope)`
  已过时。
  Set the direction of these tracks

  ### 从类继承的方法 org.bukkit.material.Rails

  `getDirection, isOnSlope, toString`

  ### 从类继承的方法 org.bukkit.material.MaterialData

  `equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack`

  ### 从类继承的方法 java.lang.Object

  `finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## 构造器详细资料

  - ### ExtendedRails

    public ExtendedRails(Material type)
    已过时。

  - ### ExtendedRails

    @Deprecated public ExtendedRails(Material type, byte data)
    已过时。
    Magic value
    参数:
      `type` - the type
      `data` - the raw data value

- ## 方法详细资料

  - ### isCurve

    public boolean isCurve()
    已过时。
    覆盖:
      `isCurve` 在类中 `Rails`
    返回:
      the whether this track is set as a curve

  - ### getConvertedData

    @Deprecated protected byte getConvertedData()
    已过时。
    Magic value
    Return the data without the extended properties used by `PoweredRail` and `DetectorRail`. Overridden in `ExtendedRails`
    覆盖:
      `getConvertedData` 在类中 `Rails`
    返回:
      the data without the extended part

  - ### setDirection

    public void setDirection(BlockFace face, boolean isOnSlope)
    已过时。
    从类复制的说明: `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.

    覆盖:
      `setDirection` 在类中 `Rails`
    参数:
      `face` - the direction the track should be facing
      `isOnSlope` - whether or not the track should be on a slope

  - ### clone

    public ExtendedRails clone()
    已过时。
    覆盖:
      `clone` 在类中 `Rails`