Search in sources :

Example 1 with EntityAIFollowInventory

use of de.sanandrew.mods.claysoldiers.entity.ai.EntityAIFollowInventory in project ClaySoldiersMod by SanAndreasP.

the class EntityClaySoldier method initEntityAI.

@Override
protected void initEntityAI() {
    this.tasks.addTask(1, new EntityAIFollowTarget.Fallen(this, 1.0D));
    this.tasks.addTask(2, new EntityAIFollowTarget.Upgrade(this, 1.0D));
    this.tasks.addTask(2, new EntityAIFollowTarget.Mount(this, 1.0D));
    this.tasks.addTask(2, new EntityAIFollowInventory(this, 1.0D));
    this.tasks.addTask(3, new EntityAIFollowTarget.King(this, 1.0D));
    this.tasks.addTask(4, new EntityAIFollowEnemy.Ranged(this, 1.0D));
    this.tasks.addTask(5, new EntityAIFollowEnemy.Meelee(this, 1.0D));
    this.tasks.addTask(6, new EntityAIMoveTowardsRestriction(this, 0.5D));
    this.tasks.addTask(7, new EntityAIWander(this, 0.5D));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAISearchTarget.Fallen(this));
    this.targetTasks.addTask(2, new EntityAISearchTarget.Upgrade(this));
    this.targetTasks.addTask(2, new EntityAISearchInventory(this));
    this.targetTasks.addTask(2, new EntityAISearchTarget.Mount(this));
    this.targetTasks.addTask(3, new EntityAISearchTarget.King(this));
    this.targetTasks.addTask(4, new EntityAISearchTarget.Enemy(this));
}
Also used : EntityAIWander(net.minecraft.entity.ai.EntityAIWander) EntityAILookIdle(net.minecraft.entity.ai.EntityAILookIdle) EntityAIMoveTowardsRestriction(net.minecraft.entity.ai.EntityAIMoveTowardsRestriction) EntityAISearchTarget(de.sanandrew.mods.claysoldiers.entity.ai.EntityAISearchTarget) EntityAIFollowEnemy(de.sanandrew.mods.claysoldiers.entity.ai.EntityAIFollowEnemy) EntityAIFollowTarget(de.sanandrew.mods.claysoldiers.entity.ai.EntityAIFollowTarget) EntityAIFollowInventory(de.sanandrew.mods.claysoldiers.entity.ai.EntityAIFollowInventory) EntityAISearchInventory(de.sanandrew.mods.claysoldiers.entity.ai.EntityAISearchInventory)

Aggregations

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 EntityAILookIdle (net.minecraft.entity.ai.EntityAILookIdle)1 EntityAIMoveTowardsRestriction (net.minecraft.entity.ai.EntityAIMoveTowardsRestriction)1 EntityAIWander (net.minecraft.entity.ai.EntityAIWander)1