类 PoweredRail

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

public class PoweredRail extends ExtendedRails implements Redstone
代表充能铁轨
  • 构造器详细资料

    • PoweredRail

      public PoweredRail()
    • PoweredRail

      @Deprecated public PoweredRail(int type)
      已过时。
      不安全的参数
      参数:
      type - the raw type id
    • PoweredRail

      public PoweredRail(Material type)
    • PoweredRail

      @Deprecated public PoweredRail(int type, byte data)
      已过时。
      不安全的参数
      参数:
      type - the raw type id
      data - the raw data value
    • PoweredRail

      @Deprecated public PoweredRail(Material type, byte data)
      已过时。
      不安全的参数
      参数:
      type - the type
      data - the raw data value
  • 方法详细资料

    • isPowered

      public boolean isPowered()
      获取这个充能铁轨是否充能.
      指定者:
      isPowered 在接口中 Redstone
      返回:
      这个充能铁轨是否充能
    • setPowered

      public void setPowered(boolean isPowered)
      设置这个充能铁轨是否充能.

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

      参数:
      isPowered - 这个充能铁轨是否充能
    • clone

      public PoweredRail clone()
      覆盖:
      clone 在类中 ExtendedRails