Search in sources :

Example 6 with EntityAIMoveTowardsRestriction

use of net.minecraft.entity.ai.EntityAIMoveTowardsRestriction in project DefiledLands by Lykrast.

the class EntityDestroyer method initEntityAI.

protected void initEntityAI() {
    this.tasks.addTask(0, new AIDoNothing());
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, new AIBigLeap(this, 1.2F));
    this.tasks.addTask(3, new EntityAIAttackMelee(this, 1.0D, true));
    this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(7, new EntityAIWanderAvoidWater(this, 1.0D));
    this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(9, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAINearestAttackableTarget<EntityPlayer>(this, EntityPlayer.class, false));
    this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false, new Class[0]));
}
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) EntityAIHurtByTarget(net.minecraft.entity.ai.EntityAIHurtByTarget) EntityAILookIdle(net.minecraft.entity.ai.EntityAILookIdle) EntityAIAttackMelee(net.minecraft.entity.ai.EntityAIAttackMelee) EntityAIWanderAvoidWater(net.minecraft.entity.ai.EntityAIWanderAvoidWater)

Example 7 with EntityAIMoveTowardsRestriction

use of net.minecraft.entity.ai.EntityAIMoveTowardsRestriction in project DefiledLands by Lykrast.

the class EntityShambler method initEntityAI.

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 EntityAIWanderAvoidWater(this, 1.0D));
    this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(9, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false, new Class[0]));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget<EntityPlayer>(this, EntityPlayer.class, true));
}
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) EntityAIHurtByTarget(net.minecraft.entity.ai.EntityAIHurtByTarget) EntityAILookIdle(net.minecraft.entity.ai.EntityAILookIdle) EntityAIAttackMelee(net.minecraft.entity.ai.EntityAIAttackMelee) EntityAIWanderAvoidWater(net.minecraft.entity.ai.EntityAIWanderAvoidWater)

Example 8 with EntityAIMoveTowardsRestriction

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

the class EntityIguana 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 9 with EntityAIMoveTowardsRestriction

use of net.minecraft.entity.ai.EntityAIMoveTowardsRestriction in project DefiledLands by Lykrast.

the class EntityShamblerTwisted 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 EntityAIWanderAvoidWater(this, 1.0D));
    this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(9, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false, new Class[0]));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget<EntityPlayer>(this, EntityPlayer.class, false));
}
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) EntityAIHurtByTarget(net.minecraft.entity.ai.EntityAIHurtByTarget) EntityAILookIdle(net.minecraft.entity.ai.EntityAILookIdle) EntityAIAttackMelee(net.minecraft.entity.ai.EntityAIAttackMelee) EntityAIWanderAvoidWater(net.minecraft.entity.ai.EntityAIWanderAvoidWater)

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