Package net.minecraft.entity.ai

Examples of net.minecraft.entity.ai.EntityAIWatchClosest


        this.tasks.addTask(2, new EntityAITempt(this, 0.3F, NContent.bowlStew, false));
        this.tasks.addTask(3, new EntityAIMate(this, f));
        this.tasks.addTask(4, new EntityAIAvoidEntity(this, EntityPlayer.class, 8.0F, 0.25F, 0.3F));
        this.tasks.addTask(5, new EntityAIFollowParent(this, 0.28F));
        this.tasks.addTask(6, new EntityAIWander(this, f));
        this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
        this.tasks.addTask(8, new EntityAILookIdle(this));
    }
View Full Code Here


  public EntityDoppleganger(World par1World) {
    super(par1World);
    setSize(0.6F, 1.8F);
    getNavigator().setCanSwim(true);
    tasks.addTask(0, new EntityAISwimming(this));
    tasks.addTask(1, new EntityAIWatchClosest(this, EntityPlayer.class, Float.MAX_VALUE));
    isImmuneToFire = true;
    experienceValue = 825;
  }
View Full Code Here

        this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityPriestess.class, this.moveSpeed, true));
        this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityWife.class, this.moveSpeed, true));
        this.tasks.addTask(4, new EntityAIMoveTwardsRestriction(this, this.moveSpeed));
        this.tasks.addTask(5, new EntityAIMoveThroughVillage(this, this.moveSpeed, false));
        this.tasks.addTask(6, new EntityAIWander(this, this.moveSpeed));
        this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
        this.tasks.addTask(7, new EntityAILookIdle(this));
        this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
        this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 20.0F, 0, true));
        this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 15.0F, 0, false));
        this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityAlchemist.class, 15.0F, 0, false));
View Full Code Here

        this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityPriestess.class, this.moveSpeed, true));
        this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityWife.class, this.moveSpeed, true));
        this.tasks.addTask(4, new EntityAIMoveTwardsRestriction(this, this.moveSpeed));
        this.tasks.addTask(5, new EntityAIMoveThroughVillage(this, this.moveSpeed, false));
        this.tasks.addTask(6, new EntityAIWander(this, this.moveSpeed));
        this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
        this.tasks.addTask(7, new EntityAILookIdle(this));
        this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
        this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 20.0F, 0, true));
        this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 15.0F, 0, false));
        this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityAlchemist.class, 15.0F, 0, false));
View Full Code Here

      tasks.addTask(1, new EntityAIFindShelterFromRain(this, 0.4f));
      tasks.addTask(2, new EntityAIGatherDroppedItems(this, null)); // Testing, might move to specific citizens
      tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, this.moveSpeed, false));
      tasks.addTask(3, new EntityAIMaintainInventoryLevels(this));
      tasks.addTask(4, new EntityAIJoinTown(this));
    tasks.addTask(5, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    tasks.addTask(5, new EntityAIGoHomeAtNight(this));
    tasks.addTask(5, new EntityAISeekEmployment(this));
    tasks.addTask(6, new EntityAITransferInventoryToEmployer(this));
      tasks.addTask(6, new EntityAIVisit(this));
      tasks.addTask(6, new EntityAIWander(this, this.moveSpeed));
View Full Code Here

    getNavigator().setAvoidsWater(true);

    tasks.addTask(1, new RobitAIPickup(this, 1.0F));
    tasks.addTask(2, new RobitAIFollow(this, 1.0F, 4.0F, 2.0F));
    tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    tasks.addTask(3, new EntityAILookIdle(this));
    tasks.addTask(4, new EntityAISwimming(this));

    setAlwaysRenderNameTag(true);
  }
View Full Code Here

        super(world);
        preventEntitySpawning = true;
       
        tasks.addTask(1, new EntityAIScareClosest(this, EntityMob.class, 50.0F));
        tasks.addTask(2, new EntityAIScareClosest(this, EntityCreature.class, 50.0F));
        tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 50.0F));
        tasks.addTask(7, new EntityAILookIdle(this));
    }
View Full Code Here

TOP

Related Classes of net.minecraft.entity.ai.EntityAIWatchClosest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.