Package net.minecraft.src

Examples of net.minecraft.src.EntityAIWander


  public SmartNPC(World par1World) {
    super(par1World);
    texture = "/mob/char.png";
        moveSpeed = 0.23F;
    tasks.addTask(2, new EntityAIWander(this, moveSpeed));
    tasks.addTask(0, new EntityAISwimming(this));
  }
View Full Code Here


      tasks.addTask(0, new EntityAISoldier(this, EntityMob.class, Imperial.class,moveSpeed));
       
       tasks.addTask(5, new EntityAIMoveThroughVillage(this, moveSpeed, true));
      targetTasks.addTask(2, new EntityAINearestAttackableTarget(this,
          me.ashtheking.dragons.mob.SabreTooth.class, 16F, 0, false));
      tasks.addTask(6, new EntityAIWander(this, .2F));
      tasks.addTask(1, new EntityAIAttackOnCollide(this, moveSpeed, true));
       targetTasks.addTask(0, new EntityAIHurtByTarget(this, true));
  }
View Full Code Here

//        Magic.staves.get(2).shiftedIndex, 60));
    tasks.addTask(2, new EntityAILeapAtTarget(this, 0.4F));
       // tasks.addTask(2, new EntityAIAttackOnCollide(this, moveSpeed, true));
        tasks.addTask(2, new EntityAIMagic(this, moveSpeed, Magic.staves.get(2).shiftedIndex, 60));
    tasks.addTask(4, new EntityAIFollowOwner(this, moveSpeed, 10F, 2.0F));
        tasks.addTask(6, new EntityAIWander(this, moveSpeed));
        targetTasks.addTask(2, new EntityAIOwnerHurtByTarget(this));
        targetTasks.addTask(2, new EntityAIOwnerHurtTarget(this));
        targetTasks.addTask(2, new EntityAIHurtByTarget(this, true));
  }
View Full Code Here

    // net.minecraft.src.EntityPlayer.class,
    // moveSpeed, true));
    // tasks.addTask(2, new EntityAIAttackOnCollide(this,
    // net.minecraft.src.EntityVillager.class,
    // moveSpeed, true));
    tasks.addTask(6, new EntityAIWander(this, moveSpeed));
    tasks.addTask(6, new EntityAIWatchClosest(this, net.minecraft.src.EntityPlayer.class, 8F));
    tasks.addTask(6, new EntityAILookIdle(this));
    targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
    targetTasks.addTask(2, new EntityAINearestAttackableTarget(this,
        net.minecraft.src.EntityPlayer.class, 16F, 0, true));
View Full Code Here

    tasks.addTask(2, new EntityAIPanic(this, 0.38F));
    tasks.addTask(5, new EntityAIMate(this, f));
    tasks.addTask(4, new EntityAITempt(this, 0.25F,
        Item.wheat.shiftedIndex, false));
    tasks.addTask(6, new EntityAIFollowParent(this, 0.28F));
    tasks.addTask(6, new EntityAIWander(this, f));
    tasks.addTask(6, new EntityAIWatchClosest(this,  net.minecraft.src.EntityPlayer.class, 6F));
     
    tasks.addTask(6, new EntityAILookIdle(this));
     tasks.addTask(2, new EntityAIAvoidEntity(this, me.ashtheking.dragons.mob.SabreTooth.class, 18F, 0.4F, 0.4F));
     tasks.addTask(2,new EntityAIPanic(this, .38f));
View Full Code Here

        setSize(width * 3F, 6F);
        getNavigator().func_48664_a(true);
    tasks.addTask(1, new EntityAISwimming(this));
    tasks.addTask(1, new EntityAIAvoidEntity(this, net.minecraft.src.EntityCreeper.class, 16F,
        0.23F, 0.4F));
    tasks.addTask(6, new EntityAIWander(this, .2F));
    tasks.addTask(6, new EntityAIWatchClosest(this, net.minecraft.src.EntityLiving.class, 10F));
    tasks.addTask(2, new EntityAIAttackOnCollide(this, .3F, true));


    targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
View Full Code Here

    super(world);
    moveSpeed = 0.3F;
    // texture = faction ? "/mob/stormcloak.png" : "/mob/imperial.png";

    tasks.addTask(1, new EntityAISwimming(this));
    tasks.addTask(6, new EntityAIWander(this, moveSpeed));
    tasks.addTask(6, new EntityAIWatchClosest(this, net.minecraft.src.EntityPlayer.class, 8F));
    tasks.addTask(6, new EntityAILookIdle(this));
    targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    targetTasks.addTask(2, new EntityAINearestAttackableTarget(this,
        me.ashtheking.dragons.mob.Dragon.class, 64F, 0, false));
View Full Code Here

  {
    super(par1World);
        getNavigator().func_48664_a(true);

    tasks.addTask(1, new EntityAISwimming(this));
      tasks.addTask(6, new EntityAIWander(this, moveSpeed));
      tasks.addTask(6, new EntityAIWatchClosest(this, net.minecraft.src.EntityPlayer.class, 8F));
      tasks.addTask(6, new EntityAILookIdle(this));
        tasks.addTask(4, new EntityAIAttackOnCollide(this, moveSpeed, true));
          tasks.addTask(5, new EntityAIFollowOwner(this, moveSpeed, 10F, 2.0F));
      targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
View Full Code Here

    super(par1World);
    setLocationAndAngles(par2EntityLiving.posX, par2EntityLiving.posY+ (double) par2EntityLiving.getEyeHeight(), par2EntityLiving.posZ,  par2EntityLiving.rotationYaw, par2EntityLiving.rotationPitch)
        getNavigator().func_48664_a(true);

    tasks.addTask(1, new EntityAISwimming(this));
      tasks.addTask(6, new EntityAIWander(this, moveSpeed));
      tasks.addTask(6, new EntityAIWatchClosest(this, net.minecraft.src.EntityPlayer.class, 8F));
      tasks.addTask(6, new EntityAILookIdle(this));
        tasks.addTask(4, new EntityAIAttackOnCollide(this, moveSpeed, true));
          tasks.addTask(5, new EntityAIFollowOwner(this, moveSpeed, 10F, 2.0F));
      targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
View Full Code Here

    tasks.addTask(0, new EntityAISoldier(this, EntityMob.class, Stormcloak.class,moveSpeed));
     
     tasks.addTask(5, new EntityAIMoveThroughVillage(this, moveSpeed, true));
    targetTasks.addTask(2, new EntityAINearestAttackableTarget(this,
        me.ashtheking.dragons.mob.SabreTooth.class, 16F, 0, false));
    tasks.addTask(6, new EntityAIWander(this, .2F));
     targetTasks.addTask(0, new EntityAIHurtByTarget(this, true));
     
  }
View Full Code Here

TOP

Related Classes of net.minecraft.src.EntityAIWander

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.