Search in sources :

Example 1 with EntityAISwimming

use of net.minecraft.entity.ai.EntityAISwimming in project ArsMagica2 by Mithion.

the class AM2Boss method initAI.

/**
	 * This contains the default AI tasks.  To add new ones, override {@link #initSpecificAI()}
	 */
protected void initAI() {
    this.getNavigator().setBreakDoors(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
    this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityLightMage.class, 0, true));
    initSpecificAI();
}
Also used : EntityAISwimming(net.minecraft.entity.ai.EntityAISwimming) EntityLightMage(am2.entities.EntityLightMage) EntityAIHurtByTarget(net.minecraft.entity.ai.EntityAIHurtByTarget) EntityPlayer(net.minecraft.entity.player.EntityPlayer) EntityAINearestAttackableTarget(net.minecraft.entity.ai.EntityAINearestAttackableTarget)

Example 2 with EntityAISwimming

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

the class EntityPigtificateLeader method initEntityAI.

@Override
protected void initEntityAI() {
    tasks.addTask(0, new EntityAISwimming(this));
    tasks.addTask(1, new EntityAIPigtificateTradePlayer(this));
    tasks.addTask(1, new EntityAIPigtificateLookAtTradePlayer(this));
    tasks.addTask(2, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
    tasks.addTask(2, new EntityAIPigtificateInteract(this));
    tasks.addTask(3, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
Also used : EntityAIWatchClosest(net.minecraft.entity.ai.EntityAIWatchClosest) EntityLiving(net.minecraft.entity.EntityLiving) EntityAISwimming(net.minecraft.entity.ai.EntityAISwimming) EntityAIPigtificateInteract(nex.entity.ai.EntityAIPigtificateInteract) EntityAIPigtificateTradePlayer(nex.entity.ai.EntityAIPigtificateTradePlayer) EntityPlayer(net.minecraft.entity.player.EntityPlayer) EntityAIWatchClosest2(net.minecraft.entity.ai.EntityAIWatchClosest2) EntityAIPigtificateLookAtTradePlayer(nex.entity.ai.EntityAIPigtificateLookAtTradePlayer)

Example 3 with EntityAISwimming

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

Example 4 with EntityAISwimming

use of net.minecraft.entity.ai.EntityAISwimming in project MorePlanets by SteveKunG.

the class EntityGiantWorm method initEntityAI.

@Override
protected void initEntityAI() {
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackMelee(this, 1.0D, false));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget<>(this, EntityPlayer.class, true));
}
Also used : EntityAISwimming(net.minecraft.entity.ai.EntityAISwimming) EntityAIHurtByTarget(net.minecraft.entity.ai.EntityAIHurtByTarget) EntityPlayer(net.minecraft.entity.player.EntityPlayer) EntityAIAttackMelee(net.minecraft.entity.ai.EntityAIAttackMelee)

Example 5 with EntityAISwimming

use of net.minecraft.entity.ai.EntityAISwimming in project ArsMagica2 by Mithion.

the class EntityShadowHelper method initAI.

private void initAI() {
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(1, new EntityAIOpenDoor(this, true));
    this.tasks.addTask(2, new EntityAISpellmaking(this));
}
Also used : EntityAISwimming(net.minecraft.entity.ai.EntityAISwimming) EntityAIOpenDoor(net.minecraft.entity.ai.EntityAIOpenDoor) EntityAISpellmaking(am2.entities.ai.EntityAISpellmaking)

Aggregations

EntityAISwimming (net.minecraft.entity.ai.EntityAISwimming)6 EntityPlayer (net.minecraft.entity.player.EntityPlayer)4 EntityAIHurtByTarget (net.minecraft.entity.ai.EntityAIHurtByTarget)2 EntityAINearestAttackableTarget (net.minecraft.entity.ai.EntityAINearestAttackableTarget)2 EntityAIWatchClosest (net.minecraft.entity.ai.EntityAIWatchClosest)2 EntityLightMage (am2.entities.EntityLightMage)1 EntityAIChestDeposit (am2.entities.ai.EntityAIChestDeposit)1 EntityAIPickup (am2.entities.ai.EntityAIPickup)1 EntityAISpellmaking (am2.entities.ai.EntityAISpellmaking)1 EntityAITargetNearbyInanimate (am2.entities.ai.EntityAITargetNearbyInanimate)1 EntityLiving (net.minecraft.entity.EntityLiving)1 EntityAIAttackMelee (net.minecraft.entity.ai.EntityAIAttackMelee)1 EntityAIOpenDoor (net.minecraft.entity.ai.EntityAIOpenDoor)1 EntityAIWander (net.minecraft.entity.ai.EntityAIWander)1 EntityAIWatchClosest2 (net.minecraft.entity.ai.EntityAIWatchClosest2)1 EntityItem (net.minecraft.entity.item.EntityItem)1 EntityAIPigtificateInteract (nex.entity.ai.EntityAIPigtificateInteract)1 EntityAIPigtificateLookAtTradePlayer (nex.entity.ai.EntityAIPigtificateLookAtTradePlayer)1 EntityAIPigtificateTradePlayer (nex.entity.ai.EntityAIPigtificateTradePlayer)1