程序包 org.bukkit.block

# 接口 Lidded

所有已知子接口:
  `Barrel`, `Chest`, `EnderChest`, `ShulkerBox`

public interface Lidded
代表有盖容器.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `void`
  `close()`
  设置方块的动作状态为关闭, 即使玩家正在查看此方块.
  `void`
  `open()`
  设置方块的动作状态为打开并阻止其关闭, 直到调用`close()`.

- ## 方法详细资料

  - ### open

    void open()
    设置方块的动作状态为打开并阻止其关闭, 直到调用`close()`.

    原文:Sets the block's animated state to open and prevents it from being closed until `close()` is called.

  - ### close

    void close()
    设置方块的动作状态为关闭, 即使玩家正在查看此方块.

    原文:Sets the block's animated state to closed even if a player is currently viewing this block.