接口 Powerable

所有超级接口:
BlockData, Cloneable
所有已知子接口:
Bell, Comparator, CopperBulb, Door, Gate, Lectern, LightningRod, NoteBlock, Observer, RedstoneRail, Repeater, Switch, TrapDoor, Tripwire, TripwireHook

public interface Powerable extends BlockData
'powered' 数据值表示该方块是否被充能. 也就是说, 方块正接受大于 0 的红石信号.
  • 方法详细资料

    • isPowered

      boolean isPowered()
      获取 'powered' 数据值.

      原文: Gets the value of the 'powered' property.

      返回:
      方块是否被充能
    • setPowered

      void setPowered(boolean powered)
      设置 'powered' 数据值.

      原文: Sets the value of the 'powered' property.

      参数:
      powered - 方块是否被充能