类 RedstoneWire

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.RedstoneWire
所有已实现的接口:
Cloneable, Redstone

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

    • RedstoneWire

      public RedstoneWire()
      已过时。
    • RedstoneWire

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

      @Deprecated(since="1.6.2") public RedstoneWire(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 在类中 MaterialData
    • clone

      public RedstoneWire clone()
      已过时。
      覆盖:
      clone 在类中 MaterialData