mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 19:55:52 -07:00
SPIGOT-213: Add method to enable / disable AI for mobs
By: Redrield <purbleguy@gmail.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user