Interface Openable

  • All Known Implementing Classes:
    Door, Gate, TrapDoor

    public interface Openable
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isOpen()
      Check to see if the door is open.
      void setOpen​(boolean isOpen)
      Configure this door to be either open or closed;
    • Method Detail

      • isOpen

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

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