接口 Openable

所有已知实现类:
Door, Gate, TrapDoor

public interface Openable
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    Check to see if the door is open.
    void
    setOpen(boolean isOpen)
    Configure this door to be either open or closed;
  • 方法详细资料

    • isOpen

      boolean isOpen()
      Check to see if the door is open.
      返回:
      true if the door has swung counterclockwise around its hinge.
    • setOpen

      void setOpen(boolean isOpen)
      Configure this door to be either open or closed;
      参数:
      isOpen - True to open the door.