程序包 org.bukkit.block.data

# 接口 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 的红石信号.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `boolean`
  `isPowered()`
  获取 'powered' 数据值.
  `void`
  `setPowered(boolean powered)`
  设置 'powered' 数据值.

  ### 从接口继承的方法 org.bukkit.block.data.BlockData

  `clone, copyTo, createBlockState, getAsString, getAsString, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate`

- ## 方法详细资料

  - ### 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` - 方块是否被充能