Search in sources :

Example 1 with EntityAIMoveTowardsRestriction

use of net.minecraft.entity.ai.EntityAIMoveTowardsRestriction in project Tropicraft by Tropicraft.

the class EntityTropiSkeleton method initEntityAI.

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

Example 2 with EntityAIMoveTowardsRestriction

use of net.minecraft.entity.ai.EntityAIMoveTowardsRestriction 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 3 with EntityAIMoveTowardsRestriction

use of net.minecraft.entity.ai.EntityAIMoveTowardsRestriction 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)

Example 4 with EntityAIMoveTowardsRestriction

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

the class EntityCaveman method initEntityAI.

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

Example 5 with EntityAIMoveTowardsRestriction

use of net.minecraft.entity.ai.EntityAIMoveTowardsRestriction in project ClaySoldiersMod by SanAndreasP.

the class EntityClaySoldier method initEntityAI.

@Override
protected void initEntityAI() {
    this.tasks.addTask(1, new EntityAIFollowTarget.Fallen(this, 1.0D));
    this.tasks.addTask(2, new EntityAIFollowTarget.Upgrade(this, 1.0D));
    this.tasks.addTask(2, new EntityAIFollowTarget.Mount(this, 1.0D));
    this.tasks.addTask(2, new EntityAIFollowInventory(this, 1.0D));
    this.tasks.addTask(3, new EntityAIFollowTarget.King(this, 1.0D));
    this.tasks.addTask(4, new EntityAIFollowEnemy.Ranged(this, 1.0D));
    this.tasks.addTask(5, new EntityAIFollowEnemy.Meelee(this, 1.0D));
    this.tasks.addTask(6, new EntityAIMoveTowardsRestriction(this, 0.5D));
    this.tasks.addTask(7, new EntityAIWander(this, 0.5D));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAISearchTarget.Fallen(this));
    this.targetTasks.addTask(2, new EntityAISearchTarget.Upgrade(this));
    this.targetTasks.addTask(2, new EntityAISearchInventory(this));
    this.targetTasks.addTask(2, new EntityAISearchTarget.Mount(this));
    this.targetTasks.addTask(3, new EntityAISearchTarget.King(this));
    this.targetTasks.addTask(4, new EntityAISearchTarget.Enemy(this));
}
Also used : EntityAIWander(net.minecraft.entity.ai.EntityAIWander) EntityAILookIdle(net.minecraft.entity.ai.EntityAILookIdle) EntityAIMoveTowardsRestriction(net.minecraft.entity.ai.EntityAIMoveTowardsRestriction) EntityAISearchTarget(de.sanandrew.mods.claysoldiers.entity.ai.EntityAISearchTarget) EntityAIFollowEnemy(de.sanandrew.mods.claysoldiers.entity.ai.EntityAIFollowEnemy) EntityAIFollowTarget(de.sanandrew.mods.claysoldiers.entity.ai.EntityAIFollowTarget) EntityAIFollowInventory(de.sanandrew.mods.claysoldiers.entity.ai.EntityAIFollowInventory) EntityAISearchInventory(de.sanandrew.mods.claysoldiers.entity.ai.EntityAISearchInventory)

Aggregations

EntityAILookIdle (net.minecraft.entity.ai.EntityAILookIdle)9 EntityAIMoveTowardsRestriction (net.minecraft.entity.ai.EntityAIMoveTowardsRestriction)9 EntityAISwimming (net.minecraft.entity.ai.EntityAISwimming)8 EntityAIWatchClosest (net.minecraft.entity.ai.EntityAIWatchClosest)8 EntityAIWanderAvoidWater (net.minecraft.entity.ai.EntityAIWanderAvoidWater)6 EntityPlayer (net.minecraft.entity.player.EntityPlayer)6 EntityAIAttackMelee (net.minecraft.entity.ai.EntityAIAttackMelee)5 EntityAIHurtByTarget (net.minecraft.entity.ai.EntityAIHurtByTarget)3 EntityAIWander (net.minecraft.entity.ai.EntityAIWander)3 EntityAIZombieAttack (net.minecraft.entity.ai.EntityAIZombieAttack)2 EntityMob (net.minecraft.entity.monster.EntityMob)2 EntityAIFollowEnemy (de.sanandrew.mods.claysoldiers.entity.ai.EntityAIFollowEnemy)1 EntityAIFollowInventory (de.sanandrew.mods.claysoldiers.entity.ai.EntityAIFollowInventory)1 EntityAIFollowTarget (de.sanandrew.mods.claysoldiers.entity.ai.EntityAIFollowTarget)1 EntityAISearchInventory (de.sanandrew.mods.claysoldiers.entity.ai.EntityAISearchInventory)1 EntityAISearchTarget (de.sanandrew.mods.claysoldiers.entity.ai.EntityAISearchTarget)1 EntityAIRestrictSun (net.minecraft.entity.ai.EntityAIRestrictSun)1