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

This commit is contained in:
Redrield 2016-03-26 01:41:20 -04:00 committed by md_5
parent 67851e79b6
commit 0052c3c5a7

View file

@ -381,4 +381,17 @@ public interface LivingEntity extends Attributable, Entity, Damageable, Projecti
*/ */
public void setGliding(boolean gliding); 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();
} }