mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
SPIGOT-213: Add method to enable / disable AI for mobs
This commit is contained in:
parent
67851e79b6
commit
0052c3c5a7
1 changed files with 13 additions and 0 deletions
|
@ -381,4 +381,17 @@ public interface LivingEntity extends Attributable, Entity, Damageable, Projecti
|
|||
*/
|
||||
public void setGliding(boolean gliding);
|
||||
|
||||
/**
|
||||
* Sets whether an entity will have AI.
|
||||
*
|
||||
* @param ai whether the mob will have AI or not.
|
||||
*/
|
||||
void setAI(boolean ai);
|
||||
|
||||
/**
|
||||
* Checks whether an entity has AI.
|
||||
*
|
||||
* @return true if the entity has AI, otherwise false.
|
||||
*/
|
||||
boolean hasAI();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue