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

/**
 * An animal that can sit still.
 */
public interface Sittable {

    /**
     * Checks if this animal is sitting
     *
     * @return true if sitting
     */
    boolean isSitting();

    /**
     * Sets if this animal is sitting. Will remove any path that the animal
     * was following beforehand.
     *
     * @param sitting true if sitting
     */
    void setSitting(boolean sitting);

}