程序包 org.bukkit.material

# 类 PoweredRail

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

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

@Deprecated public class PoweredRail extends ExtendedRails implements Redstone
已过时。
all usage of MaterialData is deprecated and subject to removal. Use `BlockData`.
Represents a powered rail

- ## 构造器概要

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

- ## 方法概要

  修饰符和类型
  方法
  说明
  `PoweredRail`
  `clone()`
  已过时。
  `boolean`
  `isPowered()`
  已过时。
  Gets the current state of this Material, indicating if it's powered or unpowered
  `void`
  `setPowered(boolean isPowered)`
  已过时。
  Set whether this PoweredRail should be powered or not.

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

  `getConvertedData, isCurve, setDirection`

  ### 从类继承的方法 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`

- ## 构造器详细资料

  - ### PoweredRail

    public PoweredRail()
    已过时。

  - ### PoweredRail

    public PoweredRail(Material type)
    已过时。

  - ### PoweredRail

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

- ## 方法详细资料

  - ### isPowered

    public boolean isPowered()
    已过时。
    从接口复制的说明: `Redstone`
    Gets the current state of this Material, indicating if it's powered or unpowered
    指定者:
      `isPowered` 在接口中 `Redstone`
    返回:
      true if powered, otherwise false

  - ### setPowered

    public void setPowered(boolean isPowered)
    已过时。
    Set whether this PoweredRail should be powered or not.
    参数:
      `isPowered` - whether or not the rail is powered

  - ### clone

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