Java 类net.minecraft.entity.ai.EntityAIHarvestFarmland 实例源码

项目:DecompiledMinecraft    文件:EntityVillager.java   
private void setAdditionalAItasks()
{
    if (!this.areAdditionalTasksSet)
    {
        this.areAdditionalTasksSet = true;

        if (this.isChild())
        {
            this.tasks.addTask(8, new EntityAIPlay(this, 0.32D));
        }
        else if (this.getProfession() == 0)
        {
            this.tasks.addTask(6, new EntityAIHarvestFarmland(this, 0.6D));
        }
    }
}
项目:DecompiledMinecraft    文件:EntityVillager.java   
private void setAdditionalAItasks()
{
    if (!this.areAdditionalTasksSet)
    {
        this.areAdditionalTasksSet = true;

        if (this.isChild())
        {
            this.tasks.addTask(8, new EntityAIPlay(this, 0.32D));
        }
        else if (this.getProfession() == 0)
        {
            this.tasks.addTask(6, new EntityAIHarvestFarmland(this, 0.6D));
        }
    }
}
项目:BaseClient    文件:EntityVillager.java   
private void setAdditionalAItasks()
{
    if (!this.areAdditionalTasksSet)
    {
        this.areAdditionalTasksSet = true;

        if (this.isChild())
        {
            this.tasks.addTask(8, new EntityAIPlay(this, 0.32D));
        }
        else if (this.getProfession() == 0)
        {
            this.tasks.addTask(6, new EntityAIHarvestFarmland(this, 0.6D));
        }
    }
}
项目:BaseClient    文件:EntityVillager.java   
private void setAdditionalAItasks()
{
    if (!this.areAdditionalTasksSet)
    {
        this.areAdditionalTasksSet = true;

        if (this.isChild())
        {
            this.tasks.addTask(8, new EntityAIPlay(this, 0.32D));
        }
        else if (this.getProfession() == 0)
        {
            this.tasks.addTask(6, new EntityAIHarvestFarmland(this, 0.6D));
        }
    }
}
项目:Backmemed    文件:EntityVillager.java   
private void setAdditionalAItasks()
{
    if (!this.areAdditionalTasksSet)
    {
        this.areAdditionalTasksSet = true;

        if (this.isChild())
        {
            this.tasks.addTask(8, new EntityAIPlay(this, 0.32D));
        }
        else if (this.getProfession() == 0)
        {
            this.tasks.addTask(6, new EntityAIHarvestFarmland(this, 0.6D));
        }
    }
}
项目:CustomWorldGen    文件:EntityVillager.java   
private void setAdditionalAItasks()
{
    if (!this.areAdditionalTasksSet)
    {
        this.areAdditionalTasksSet = true;

        if (this.isChild())
        {
            this.tasks.addTask(8, new EntityAIPlay(this, 0.32D));
        }
        else if (this.getProfession() == 0)
        {
            this.tasks.addTask(6, new EntityAIHarvestFarmland(this, 0.6D));
        }
    }
}
项目:ExpandedRailsMod    文件:EntityVillager.java   
private void setAdditionalAItasks()
{
    if (!this.areAdditionalTasksSet)
    {
        this.areAdditionalTasksSet = true;

        if (this.isChild())
        {
            this.tasks.addTask(8, new EntityAIPlay(this, 0.32D));
        }
        else if (this.getProfession() == 0)
        {
            this.tasks.addTask(6, new EntityAIHarvestFarmland(this, 0.6D));
        }
    }
}
项目:DecompiledMinecraft    文件:EntityVillager.java   
/**
 * This is called when Entity's growing age timer reaches 0 (negative values are considered as a child, positive as
 * an adult)
 */
protected void onGrowingAdult()
{
    if (this.getProfession() == 0)
    {
        this.tasks.addTask(8, new EntityAIHarvestFarmland(this, 0.6D));
    }

    super.onGrowingAdult();
}
项目:DecompiledMinecraft    文件:EntityVillager.java   
/**
 * This is called when Entity's growing age timer reaches 0 (negative values are considered as a child, positive as
 * an adult)
 */
protected void onGrowingAdult()
{
    if (this.getProfession() == 0)
    {
        this.tasks.addTask(8, new EntityAIHarvestFarmland(this, 0.6D));
    }

    super.onGrowingAdult();
}
项目:BaseClient    文件:EntityVillager.java   
/**
 * This is called when Entity's growing age timer reaches 0 (negative values are considered as a child, positive as
 * an adult)
 */
protected void onGrowingAdult()
{
    if (this.getProfession() == 0)
    {
        this.tasks.addTask(8, new EntityAIHarvestFarmland(this, 0.6D));
    }

    super.onGrowingAdult();
}
项目:BaseClient    文件:EntityVillager.java   
/**
 * This is called when Entity's growing age timer reaches 0 (negative values are considered as a child, positive as
 * an adult)
 */
protected void onGrowingAdult()
{
    if (this.getProfession() == 0)
    {
        this.tasks.addTask(8, new EntityAIHarvestFarmland(this, 0.6D));
    }

    super.onGrowingAdult();
}
项目:Backmemed    文件:EntityVillager.java   
/**
 * This is called when Entity's growing age timer reaches 0 (negative values are considered as a child, positive as
 * an adult)
 */
protected void onGrowingAdult()
{
    if (this.getProfession() == 0)
    {
        this.tasks.addTask(8, new EntityAIHarvestFarmland(this, 0.6D));
    }

    super.onGrowingAdult();
}
项目:CustomWorldGen    文件:EntityVillager.java   
/**
 * This is called when Entity's growing age timer reaches 0 (negative values are considered as a child, positive as
 * an adult)
 */
protected void onGrowingAdult()
{
    if (this.getProfession() == 0)
    {
        this.tasks.addTask(8, new EntityAIHarvestFarmland(this, 0.6D));
    }

    super.onGrowingAdult();
}
项目:ExpandedRailsMod    文件:EntityVillager.java   
/**
 * This is called when Entity's growing age timer reaches 0 (negative values are considered as a child, positive as
 * an adult)
 */
protected void onGrowingAdult()
{
    if (this.getProfession() == 0)
    {
        this.tasks.addTask(8, new EntityAIHarvestFarmland(this, 0.6D));
    }

    super.onGrowingAdult();
}
项目:NeptuneMod    文件:NeptuneAIFactory.java   
@Override
public AIHarvestFarmland newAIHarvestFarmland(Villager villager, double speed) {
    return (AIHarvestFarmland) new EntityAIHarvestFarmland((EntityVillager) villager, speed);
}