SPIGOT-213: Add method to enable / disable AI for mobs

By: Redrield <purbleguy@gmail.com>
This commit is contained in:
Bukkit/Spigot 2016-03-26 01:41:20 -04:00
parent 2c724bafe6
commit c24b820089

View File

@ -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();
}