接口 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, 否则返回false