Interface Openable

All Known Implementing Classes:
Door, Gate, TrapDoor

@Deprecated(forRemoval=true, since="1.13") public interface Openable
Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Check to see if the door is open.
    void
    setOpen(boolean isOpen)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Configure this door to be either open or closed;
  • Method Details

    • isOpen

      boolean isOpen()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Check to see if the door is open.
      Returns:
      true if the door has swung counterclockwise around its hinge.
    • setOpen

      void setOpen(boolean isOpen)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Configure this door to be either open or closed;
      Parameters:
      isOpen - True to open the door.