mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 17:57:34 +01:00
SPIGOT-213: Add method to enable / disable AI for mobs
By: Redrield <purbleguy@gmail.com>
This commit is contained in:
parent
2c724bafe6
commit
c24b820089
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user