Examples of EntityAISwimming


Examples of net.minecraft.entity.ai.EntityAISwimming

        //this.texture = "/mods/natura/textures/mob/imp.png";
        this.setSize(0.9F, 0.9F);
        this.getNavigator().setAvoidsWater(true);
        this.isImmuneToFire = true;
        float f = 0.25F;
        this.tasks.addTask(0, new EntityAISwimming(this));
        this.tasks.addTask(1, new EntityAIPanic(this, 0.38F));
        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));
View Full Code Here

Examples of net.minecraft.entity.ai.EntityAISwimming

  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

Examples of net.minecraft.entity.ai.EntityAISwimming

        super(par1World);
        this.texture = "/colonies/pmardle/gfx/BarbarianChief.png";
        this.moveSpeed = 0.28F;
        this.setSize(0.9f, 1.8f);
        this.getNavigator().setBreakDoors(true);
        this.tasks.addTask(0, new EntityAISwimming(this));
        this.tasks.addTask(1, new EntityAIBreakDoor(this));
        this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, this.moveSpeed, false));
        this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityVillager.class, this.moveSpeed, true));
        this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityAlchemist.class, this.moveSpeed, true));
        this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityCitizen.class, this.moveSpeed, true));
View Full Code Here

Examples of net.minecraft.entity.ai.EntityAISwimming

        super(par1World);
        this.texture = "/colonies/pmardle/gfx/Barbarian.png";
        this.moveSpeed = 0.25F;
        this.setSize(0.9f, 1.8f);
        this.getNavigator().setBreakDoors(true);
        this.tasks.addTask(0, new EntityAISwimming(this));
        this.tasks.addTask(1, new EntityAIBreakDoor(this));
        this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, this.moveSpeed, false));
        this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityVillager.class, this.moveSpeed, true));
        this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityAlchemist.class, this.moveSpeed, true));
        this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityCitizen.class, this.moveSpeed, true));
View Full Code Here

Examples of net.minecraft.entity.ai.EntityAISwimming

   
    inventory = new InventoryCitizen(this);
    desiredInventory = new InventoryCitizen(this);
    desiredInventory.addItemStackToInventory(new ItemStack(Item.bread, 2));

    tasks.addTask(0, new EntityAISwimming(this));
    tasks.addTask(1, new EntityAIEatSomething(this));
      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));
View Full Code Here

Examples of net.minecraft.entity.ai.EntityAISwimming

    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

Examples of net.minecraft.src.EntityAISwimming

  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

Examples of net.minecraft.src.EntityAISwimming

    super(world);
    texture = "/mob/atronach.png";
    moveSpeed = 0.3F;
    this.isImmuneToFire = true;
    getNavigator().func_48664_a(true);
    tasks.addTask(1, new EntityAISwimming(this));
    // tasks.addTask(2, new EntityAIAttackOnCollide(this, moveSpeed, true));
//    tasks.addTask(2, new EntityAIFollowOwner(this, moveSpeed, 10F, 2.0F));
//    tasks.addTask(6, new EntityAIWander(this, moveSpeed));
//    tasks.addTask(6, new EntityAILookIdle(this));
//    tasks.addTask(2, new EntityAIOwnerHurtByTarget(this));
View Full Code Here

Examples of net.minecraft.src.EntityAISwimming

    super(par1World);
    texture = "/mob/deer.png";
    setSize(0.9F, 0.9F);
    getNavigator().func_48664_a(true);
    float f = 0.25F;
    tasks.addTask(1, new EntityAISwimming(this));
    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));
View Full Code Here

Examples of net.minecraft.src.EntityAISwimming

    super(world);
    texture = "/mob/mammoth.png";
        yOffset *= 3F;
        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));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.