Search in sources :

Example 1 with EntityAILookIdle

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

the class EntityTropiCreeper method initEntityAI.

@Override
protected void initEntityAI() {
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAITropiCreeperSwell(this));
    this.tasks.addTask(3, new EntityAIAvoidEntity(this, EntityOcelot.class, 6.0F, 1.0D, 1.2D));
    this.tasks.addTask(4, new EntityAIAttackMelee(this, 1.0D, false));
    this.tasks.addTask(5, new EntityAIWander(this, 0.8D));
    this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(6, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true));
    this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false, new Class[0]));
}
Also used : EntityAIWatchClosest(net.minecraft.entity.ai.EntityAIWatchClosest) EntityAITropiCreeperSwell(net.tropicraft.core.common.entity.ai.EntityAITropiCreeperSwell) EntityAISwimming(net.minecraft.entity.ai.EntityAISwimming) EntityAIAvoidEntity(net.minecraft.entity.ai.EntityAIAvoidEntity) EntityOcelot(net.minecraft.entity.passive.EntityOcelot) EntityPlayer(net.minecraft.entity.player.EntityPlayer) EntityAIHurtByTarget(net.minecraft.entity.ai.EntityAIHurtByTarget) EntityAIWander(net.minecraft.entity.ai.EntityAIWander) EntityAINearestAttackableTarget(net.minecraft.entity.ai.EntityAINearestAttackableTarget) EntityAILookIdle(net.minecraft.entity.ai.EntityAILookIdle) EntityAIAttackMelee(net.minecraft.entity.ai.EntityAIAttackMelee)

Example 2 with EntityAILookIdle

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

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

the class EntityTropiSpider method initEntityAI.

@Override
protected void initEntityAI() {
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackMelee(this, 0.8D, false));
    this.tasks.addTask(7, new EntityAIWanderNotLazy(this, 0.8D, 40));
    this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(8, new EntityAILookIdle(this));
}
Also used : EntityAIWatchClosest(net.minecraft.entity.ai.EntityAIWatchClosest) EntityAISwimming(net.minecraft.entity.ai.EntityAISwimming) EntityPlayer(net.minecraft.entity.player.EntityPlayer) EntityAIWanderNotLazy(net.tropicraft.core.common.entity.ai.EntityAIWanderNotLazy) EntityAILookIdle(net.minecraft.entity.ai.EntityAILookIdle) EntityAIAttackMelee(net.minecraft.entity.ai.EntityAIAttackMelee)

Example 4 with EntityAILookIdle

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

use of net.minecraft.entity.ai.EntityAILookIdle 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)28 EntityAISwimming (net.minecraft.entity.ai.EntityAISwimming)26 EntityAIWatchClosest (net.minecraft.entity.ai.EntityAIWatchClosest)25 EntityPlayer (net.minecraft.entity.player.EntityPlayer)21 EntityAIWanderAvoidWater (net.minecraft.entity.ai.EntityAIWanderAvoidWater)15 EntityAIWander (net.minecraft.entity.ai.EntityAIWander)11 EntityAIAttackMelee (net.minecraft.entity.ai.EntityAIAttackMelee)9 EntityAIMoveTowardsRestriction (net.minecraft.entity.ai.EntityAIMoveTowardsRestriction)9 EntityAIHurtByTarget (net.minecraft.entity.ai.EntityAIHurtByTarget)8 EntityAIFollowParent (net.minecraft.entity.ai.EntityAIFollowParent)6 EntityAIPanic (net.minecraft.entity.ai.EntityAIPanic)6 EntityAITempt (net.minecraft.entity.ai.EntityAITempt)5 EntityAIMate (net.minecraft.entity.ai.EntityAIMate)4 EntityMob (net.minecraft.entity.monster.EntityMob)4 Item (net.minecraft.item.Item)3 Overwrite (org.spongepowered.asm.mixin.Overwrite)3 EntityLivingBase (net.minecraft.entity.EntityLivingBase)2 EntityAILeapAtTarget (net.minecraft.entity.ai.EntityAILeapAtTarget)2 EntityAIZombieAttack (net.minecraft.entity.ai.EntityAIZombieAttack)2 EntityAIFollowEnemy (de.sanandrew.mods.claysoldiers.entity.ai.EntityAIFollowEnemy)1