summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/block/data/Openable.java
blob: c04944ed7c2b5796d0592e4a413ac134014c5a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package org.bukkit.block.data;

/**
 * 'open' denotes whether this door-like block is currently opened.
 */
public interface Openable extends BlockData {

    /**
     * Gets the value of the 'open' property.
     *
     * @return the 'open' value
     */
    boolean isOpen();

    /**
     * Sets the value of the 'open' property.
     *
     * @param open the new 'open' value
     */
    void setOpen(boolean open);
}