Search in sources :

Example 1 with EntityAIWander

use of net.minecraft.entity.ai.EntityAIWander in project NetherEx by LogicTechCorp.

the class EntityBrute method initEntityAI.

@Override
protected void initEntityAI() {
    tasks.addTask(0, new EntityAISwimming(this));
    tasks.addTask(1, new EntityAIWatchClosest(this, EntityPlayer.class, 64.0F));
    tasks.addTask(2, new EntityAIWander(this, 1.0D, 360));
    targetTasks.addTask(0, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true));
}
Also used : EntityAIWatchClosest(net.minecraft.entity.ai.EntityAIWatchClosest) EntityAISwimming(net.minecraft.entity.ai.EntityAISwimming) EntityPlayer(net.minecraft.entity.player.EntityPlayer) EntityAIWander(net.minecraft.entity.ai.EntityAIWander) EntityAINearestAttackableTarget(net.minecraft.entity.ai.EntityAINearestAttackableTarget)

Aggregations

EntityAINearestAttackableTarget (net.minecraft.entity.ai.EntityAINearestAttackableTarget)1 EntityAISwimming (net.minecraft.entity.ai.EntityAISwimming)1 EntityAIWander (net.minecraft.entity.ai.EntityAIWander)1 EntityAIWatchClosest (net.minecraft.entity.ai.EntityAIWatchClosest)1 EntityPlayer (net.minecraft.entity.player.EntityPlayer)1