Search in sources :

Example 6 with EntityAISwimming

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

the class EntityBroom method initAI.

private void initAI() {
    this.tasks.taskEntries.clear();
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(3, new EntityAIPickup(this));
    this.tasks.addTask(2, new EntityAIChestDeposit(this));
    this.targetTasks.taskEntries.clear();
    this.targetTasks.addTask(1, new EntityAITargetNearbyInanimate(this, 8, false, EntityItem.class));
}
Also used : EntityAITargetNearbyInanimate(am2.entities.ai.EntityAITargetNearbyInanimate) EntityAIChestDeposit(am2.entities.ai.EntityAIChestDeposit) EntityAISwimming(net.minecraft.entity.ai.EntityAISwimming) EntityAIPickup(am2.entities.ai.EntityAIPickup) EntityItem(net.minecraft.entity.item.EntityItem)

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