接口 Redstone

所有已知实现类:
Button, Command, Comparator, Diode, Hopper, Lever, Observer, PistonBaseMaterial, PoweredRail, RedstoneTorch, RedstoneWire, TripwireHook

public interface Redstone
代表可以带有或产生红石电能的物品.
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    这个物品有没有充能.
  • 方法详细资料

    • isPowered

      boolean isPowered()
      这个物品有没有充能.

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

      返回:
      true代表充能