Package net.minecraft.entity.ai

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


  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

        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

        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

   
    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

    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

TOP

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

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.