类 RedstoneTorch

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

@Deprecated(since="1.14.1") public class RedstoneTorch extends Torch implements Redstone
已过时。
所有 MaterialData 的用法都已弃用并可能被移除。 请使用 BlockData。
代表一个红石火把。
  • 构造器详细资料

    • RedstoneTorch

      public RedstoneTorch()
      已过时。
    • RedstoneTorch

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

      @Deprecated(since="1.6.2") public RedstoneTorch(Material type, byte data)
      已过时。
      魔法值

      原文:Magic value

      参数:
      type - 物品类型
      data - 原始数据值
  • 方法详细资料

    • isPowered

      public boolean isPowered()
      已过时。
      获取此材质的当前状态,指示其是否已通电。
      指定者:
      isPowered 在接口中 Redstone
      返回:
      如果已通电则返回 true,否则返回 false

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

    • toString

      public String toString()
      已过时。
      覆盖:
      toString 在类中 SimpleAttachableMaterialData
    • clone

      public RedstoneTorch clone()
      已过时。
      覆盖:
      clone 在类中 Torch