public interface AiModule
Each time an entity attempts to think, it will call
think(net.tridentsdk.entity.LivingEntity) and give the
ai a chance to decide behavior.
The module may also provide a path and return a number other than 0 to indicate how many ticks the AI can rest and the path will be followed by the entity. By not setting a path and returning a value other than 0, the entity can effectively be made to "sleep," where it will not move at all.
int think(LivingEntity entity)
entity- the handle that allows this handler to interact with the entity
Copyright © 2016. All rights reserved.