Commits
Wesley Wolfe authored 48756ec1d69
1 1 | package org.bukkit.entity; |
2 2 | |
3 3 | /** |
4 4 | * Represents a Bat |
5 5 | */ |
6 - | public interface Bat extends Ambient {} |
6 + | public interface Bat extends Ambient { |
7 + | |
8 + | /** |
9 + | * Checks the current waking state of this bat. |
10 + | * <p> |
11 + | * This does not imply any persistence of state past the method call. |
12 + | * |
13 + | * @return true if the bat is awake or false if it is currently hanging |
14 + | * from a block |
15 + | */ |
16 + | boolean isAwake(); |
17 + | |
18 + | /** |
19 + | * This method modifies the current waking state of this bat. |
20 + | * <p> |
21 + | * This does not prevent a bat from spontaneously awaking itself, or from |
22 + | * reattaching itself to a block. |
23 + | * |
24 + | * @param state the new state |
25 + | */ |
26 + | void setAwake(boolean state); |
27 + | } |