Search in sources :

Example 1 with EntityAIZombieAttack

use of net.minecraft.entity.ai.EntityAIZombieAttack in project Cavern2 by kegare.

the class EntitySummonZombie method initEntityAI.

@Override
protected void initEntityAI() {
    tasks.addTask(0, new EntityAISwimming(this));
    tasks.addTask(2, new EntityAIZombieAttack(this, 1.0D, false));
    tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
    tasks.addTask(7, new EntityAIWanderAvoidWater(this, 1.0D));
    tasks.addTask(8, new EntityAIWatchClosest(this, EntityMob.class, 8.0F));
    tasks.addTask(8, new EntityAILookIdle(this));
    applyEntityAI();
}
Also used : EntityMob(net.minecraft.entity.monster.EntityMob) EntityAIWatchClosest(net.minecraft.entity.ai.EntityAIWatchClosest) EntityAIMoveTowardsRestriction(net.minecraft.entity.ai.EntityAIMoveTowardsRestriction) EntityAISwimming(net.minecraft.entity.ai.EntityAISwimming) EntityAIZombieAttack(net.minecraft.entity.ai.EntityAIZombieAttack) EntityAILookIdle(net.minecraft.entity.ai.EntityAILookIdle) EntityAIWanderAvoidWater(net.minecraft.entity.ai.EntityAIWanderAvoidWater)

Example 2 with EntityAIZombieAttack

use of net.minecraft.entity.ai.EntityAIZombieAttack in project Cavern2 by kegare.

the class EntitySummonCavenicZombie method initEntityAI.

@Override
protected void initEntityAI() {
    tasks.addTask(0, new EntityAISwimming(this));
    tasks.addTask(2, new EntityAIZombieAttack(this, 1.0D, false));
    tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
    tasks.addTask(7, new EntityAIWanderAvoidWater(this, 1.0D));
    tasks.addTask(8, new EntityAIWatchClosest(this, EntityMob.class, 8.0F));
    tasks.addTask(8, new EntityAILookIdle(this));
    applyEntityAI();
}
Also used : EntityMob(net.minecraft.entity.monster.EntityMob) EntityAIWatchClosest(net.minecraft.entity.ai.EntityAIWatchClosest) EntityAIMoveTowardsRestriction(net.minecraft.entity.ai.EntityAIMoveTowardsRestriction) EntityAISwimming(net.minecraft.entity.ai.EntityAISwimming) EntityAIZombieAttack(net.minecraft.entity.ai.EntityAIZombieAttack) EntityAILookIdle(net.minecraft.entity.ai.EntityAILookIdle) EntityAIWanderAvoidWater(net.minecraft.entity.ai.EntityAIWanderAvoidWater)

Aggregations

EntityAILookIdle (net.minecraft.entity.ai.EntityAILookIdle)2 EntityAIMoveTowardsRestriction (net.minecraft.entity.ai.EntityAIMoveTowardsRestriction)2 EntityAISwimming (net.minecraft.entity.ai.EntityAISwimming)2 EntityAIWanderAvoidWater (net.minecraft.entity.ai.EntityAIWanderAvoidWater)2 EntityAIWatchClosest (net.minecraft.entity.ai.EntityAIWatchClosest)2 EntityAIZombieAttack (net.minecraft.entity.ai.EntityAIZombieAttack)2 EntityMob (net.minecraft.entity.monster.EntityMob)2