Search in sources :

Example 1 with EntityAIPickup

use of am2.entities.ai.EntityAIPickup 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

EntityAIChestDeposit (am2.entities.ai.EntityAIChestDeposit)1 EntityAIPickup (am2.entities.ai.EntityAIPickup)1 EntityAITargetNearbyInanimate (am2.entities.ai.EntityAITargetNearbyInanimate)1 EntityAISwimming (net.minecraft.entity.ai.EntityAISwimming)1 EntityItem (net.minecraft.entity.item.EntityItem)1