mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
Add awake flag for bats. Adds BUKKIT-5606
By: Wesley Wolfe <wesley.d.wolfe+git@gmail.com>
This commit is contained in:
parent
abd8cbed5e
commit
14d4cd125c
1 changed files with 22 additions and 1 deletions
|
@ -3,4 +3,25 @@ package org.bukkit.entity;
|
|||
/**
|
||||
* Represents a Bat
|
||||
*/
|
||||
public interface Bat extends Ambient {}
|
||||
public interface Bat extends Ambient {
|
||||
|
||||
/**
|
||||
* Checks the current waking state of this bat.
|
||||
* <p>
|
||||
* This does not imply any persistence of state past the method call.
|
||||
*
|
||||
* @return true if the bat is awake or false if it is currently hanging
|
||||
* from a block
|
||||
*/
|
||||
boolean isAwake();
|
||||
|
||||
/**
|
||||
* This method modifies the current waking state of this bat.
|
||||
* <p>
|
||||
* This does not prevent a bat from spontaneously awaking itself, or from
|
||||
* reattaching itself to a block.
|
||||
*
|
||||
* @param state the new state
|
||||
*/
|
||||
void setAwake(boolean state);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue