Add set/isAware to disable Vanilla AI components of a Mob
By: konsolas <vincentyntang@gmail.com>
This commit is contained in:
@@ -443,6 +443,8 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
||||
/**
|
||||
* Sets whether an entity will have AI.
|
||||
*
|
||||
* The entity will be completely unable to move if it has no AI.
|
||||
*
|
||||
* @param ai whether the mob will have AI or not.
|
||||
*/
|
||||
void setAI(boolean ai);
|
||||
@@ -450,6 +452,8 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
||||
/**
|
||||
* Checks whether an entity has AI.
|
||||
*
|
||||
* The entity will be completely unable to move if it has no AI.
|
||||
*
|
||||
* @return true if the entity has AI, otherwise false.
|
||||
*/
|
||||
boolean hasAI();
|
||||
|
||||
Reference in New Issue
Block a user