Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
Bat.java
1 package org.bukkit.entity;
2 
3 /**
4  * Represents a Bat
5  */
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 }
void setAwake(boolean state)