Examples of EntityAITempt


Examples of net.minecraft.entity.ai.EntityAITempt

    @SubscribeEvent
    public void spawnEvent (EntityJoinWorldEvent event)
    {
        if (event.entity instanceof EntityCow || event.entity instanceof EntitySheep)
        {
            ((EntityLiving) event.entity).tasks.addTask(3, new EntityAITempt((EntityCreature) event.entity, 0.25F, NContent.plantItem, false));
        }

        if (event.entity instanceof EntityChicken)
        {
            ((EntityLiving) event.entity).tasks.addTask(3, new EntityAITempt((EntityCreature) event.entity, 0.25F, NContent.seeds, false));
        }
    }
View Full Code Here

Examples of net.minecraft.entity.ai.EntityAITempt

        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));
        this.tasks.addTask(6, new EntityAIWander(this, f));
        this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
View Full Code Here

Examples of net.minecraft.src.EntityAITempt

    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));
    tasks.addTask(6, new EntityAIWander(this, f));
    tasks.addTask(6, new EntityAIWatchClosest(this,  net.minecraft.src.EntityPlayer.class, 6F));
     
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.