微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

net.minecraft.entity.ai.EntityAIEatGrass的实例源码

项目:Tannery    文件Elk.java   
public Elk(World worldIn)
{
    super(worldIn);
    this.setSize(1.8F,2.5F);
    ((PathNavigateGround) this.getNavigator()).func_179690_a(true);
    this.tasks.addTask(0,new EntityAISwimming(this));
    this.tasks.addTask(1,new EntityAIPanic(this,2.0D));
    this.tasks.addTask(2,new Entityaimate(this,1.0D));
    this.tasks.addTask(3,new EntityAITempt(this,1.25D,Item.getItemFromBlock(Blocks.grass),false));
    this.tasks.addTask(4,new EntityaifollowParent(this,1.25D));
    this.tasks.addTask(5,new EntityAIWander(this,1.0D));
    this.tasks.addTask(5,new EntityAIEatGrass(this));
    this.tasks.addTask(6,new EntityAIWatchClosest(this,EntityPlayer.class,6.0F));
    this.tasks.addTask(7,new EntityAILookIdle(this));

}
项目:Tannery    文件ElkBaby.java   
public ElkBaby(World worldIn)
{
    super(worldIn);
    this.setSize(1.8F,new EntityAILookIdle(this));

}
项目:Backmemed    文件EntitySheep.java   
protected void initEntityAI()
{
    this.entityAIEatGrass = new EntityAIEatGrass(this);
    this.tasks.addTask(0,1.25D));
    this.tasks.addTask(2,1.1D,Items.WHEAT,1.1D));
    this.tasks.addTask(5,this.entityAIEatGrass);
    this.tasks.addTask(6,new EntityAIWanderAvoidWater(this,1.0D));
    this.tasks.addTask(7,6.0F));
    this.tasks.addTask(8,new EntityAILookIdle(this));
}
项目:CustomWorldGen    文件EntitySheep.java   
protected void initEntityAI()
{
    this.entityAIEatGrass = new EntityAIEatGrass(this);
    this.tasks.addTask(0,new EntityAILookIdle(this));
}
项目:ExpandedRailsMod    文件EntitySheep.java   
protected void initEntityAI()
{
    this.entityAIEatGrass = new EntityAIEatGrass(this);
    this.tasks.addTask(0,new EntityAILookIdle(this));
}
项目:NeptuneMod    文件Neptuneaifactory.java   
@Override
public AIEatGrass newAIEatGrass(EntityLiving entity) {
    return (AIEatGrass) new EntityAIEatGrass((net.minecraft.entity.EntityLiving) entity);
}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。