summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/entity/LivingEntity.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
index 3582d2ff..8827c6c7 100644
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
@@ -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();
}