diff options
author | Redrield <purbleguy@gmail.com> | 2016-03-26 01:41:20 -0400 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-27 09:16:33 +1100 |
commit | 0052c3c5a767adde7a333bdda46629971bc3edb9 (patch) | |
tree | c47e9f2844e6949d532bc722ac375574e8f7fbe2 /src/main/java | |
parent | 67851e79b65efb980c2bd44a3560cff39540d370 (diff) | |
download | bukkit-0052c3c5a767adde7a333bdda46629971bc3edb9.tar bukkit-0052c3c5a767adde7a333bdda46629971bc3edb9.tar.gz bukkit-0052c3c5a767adde7a333bdda46629971bc3edb9.tar.lz bukkit-0052c3c5a767adde7a333bdda46629971bc3edb9.tar.xz bukkit-0052c3c5a767adde7a333bdda46629971bc3edb9.zip |
SPIGOT-213: Add method to enable / disable AI for mobs
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/entity/LivingEntity.java | 13 |
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(); } |