类 PoweredRail

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

@Deprecated(since="1.14.1") public class PoweredRail extends ExtendedRails implements Redstone
已过时。
所有 MaterialData 的使用都已弃用并可能被移除。 使用 BlockData。
代表一个动力铁轨
  • 构造器详细资料

    • PoweredRail

      public PoweredRail()
      已过时。
    • PoweredRail

      public PoweredRail(Material type)
      已过时。
    • PoweredRail

      @Deprecated(since="1.6.2") public PoweredRail(Material type, byte data)
      已过时。
      魔法值
      参数:
      type - 类型
      data - 原始数据值
  • 方法详细资料

    • isPowered

      public boolean isPowered()
      已过时。
      从接口复制的说明: Redstone
      获取此材料的当前状态, 表示其是否被充能.

      原文: Gets the current state of this Material, indicating if it's powered or unpowered

      指定者:
      isPowered 在接口中 Redstone
      返回:
      如果被充能则返回true, 否则返回false
    • setPowered

      public void setPowered(boolean isPowered)
      已过时。
      设置此动力铁轨是否应该通电。
      参数:
      isPowered - 铁轨是否通电

      原文:Set whether this PoweredRail should be powered or not.

    • clone

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