程序包 org.bukkit.block.data

# 接口 Openable

所有超级接口:
  `BlockData`, `Cloneable`

所有已知子接口:
  `Barrel`, `Door`, `Gate`, `TrapDoor`

public interface Openable extends BlockData
'open' 表示此方块是否开着.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `boolean`
  `isOpen()`
  获取 'open' 属性值.
  `void`
  `setOpen(boolean open)`
  设置 'open' 属性值.

  ### 从接口继承的方法 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`

- ## 方法详细资料

  - ### isOpen

    boolean isOpen()
    获取 'open' 属性值.

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

    返回:
      门是否开着

  - ### setOpen

    void setOpen(boolean open)
    设置 'open' 属性值.

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

    参数:
      `open` - 门是否开着