summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/material/Openable.java
blob: 17e5f022f809d363daad12508f43f489a8f81fe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.bukkit.material;

public interface Openable {
    /**
     * Check to see if the door is open.
     *
     * @return true if the door has swung counterclockwise around its hinge.
     */
    boolean isOpen();

    /**
     * Configure this door to be either open or closed;
     *
     * @param isOpen True to open the door.
     */
    void setOpen(boolean isOpen);
}