use of net.minecraft.entity.ai.EntityAILookIdle in project Gaia-Dimension by Andromander.
the class GDRockyLuggeroth method initEntityAI.
@Override
protected void initEntityAI() {
super.initEntityAI();
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(4, new EntityAILookIdle(this));
this.tasks.addTask(1, new EntityAIWander(this, 0.5D));
}
use of net.minecraft.entity.ai.EntityAILookIdle in project Gaia-Dimension by Andromander.
the class GDSpellElement method initEntityAI.
@Override
protected void initEntityAI() {
super.initEntityAI();
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(4, new EntityAILookIdle(this));
this.tasks.addTask(2, new EntityAIWander(this, 0.5D));
}
use of net.minecraft.entity.ai.EntityAILookIdle in project Gaia-Dimension by Andromander.
the class GDNomadicLagrahk method initEntityAI.
@Override
protected void initEntityAI() {
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(4, new EntityAIWanderAvoidWater(this, 0.5D));
this.tasks.addTask(5, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(5, new EntityAILookIdle(this));
}
use of net.minecraft.entity.ai.EntityAILookIdle in project Almura by AlmuraDev.
the class MixinEntityPig method initEntityAI.
/**
* @author Dockter
* Purpose: overwrite the AT init method to customize the temptations list.
*/
@Overwrite
protected void initEntityAI() {
final Set<Item> TEMPTATION_ITEMS = Sets.newHashSet(Items.CARROT, Items.POTATO, Items.BEETROOT);
Item soyBeanItem = GameRegistry.makeItemStack("almura:food/food/soybean", 0, 1, null).getItem();
Item cornItem = GameRegistry.makeItemStack("almura:food/food/corn", 0, 1, null).getItem();
if (soyBeanItem != ItemStack.EMPTY.getItem())
TEMPTATION_ITEMS.add(soyBeanItem);
if (cornItem != ItemStack.EMPTY.getItem())
TEMPTATION_ITEMS.add(cornItem);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIPanic(this, 1.25D));
this.tasks.addTask(3, new EntityAIMate(this, 1.0D));
this.tasks.addTask(4, new EntityAITempt(this, 1.2D, Items.CARROT_ON_A_STICK, false));
this.tasks.addTask(4, new EntityAITempt(this, 1.2D, false, TEMPTATION_ITEMS));
this.tasks.addTask(5, new EntityAIFollowParent(this, 1.1D));
this.tasks.addTask(6, new EntityAIWanderAvoidWater(this, 1.0D));
this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
this.tasks.addTask(8, new EntityAILookIdle(this));
}
use of net.minecraft.entity.ai.EntityAILookIdle in project Almura by AlmuraDev.
the class MixinEntityCow method initEntityAI.
/**
* @author Dockter
* Purpose: overwrite the AT init method to customize the temptations list.
*/
@Overwrite
protected void initEntityAI() {
final Set<Item> TEMPTATION_ITEMS = Sets.newHashSet(Items.WHEAT);
Item soyBeanItem = GameRegistry.makeItemStack("almura:food/food/soybean", 0, 1, null).getItem();
Item cornItem = GameRegistry.makeItemStack("almura:food/food/corn", 0, 1, null).getItem();
Item alfalfaItem = GameRegistry.makeItemStack("almura:normal/crop/alfalfa_item", 0, 1, null).getItem();
if (soyBeanItem != ItemStack.EMPTY.getItem())
TEMPTATION_ITEMS.add(soyBeanItem);
if (cornItem != ItemStack.EMPTY.getItem())
TEMPTATION_ITEMS.add(cornItem);
if (alfalfaItem != ItemStack.EMPTY.getItem())
TEMPTATION_ITEMS.add(alfalfaItem);
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, false, TEMPTATION_ITEMS));
this.tasks.addTask(4, new EntityAIFollowParent(this, 1.25D));
this.tasks.addTask(5, new EntityAIWanderAvoidWater(this, 1.0D));
this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
this.tasks.addTask(7, new EntityAILookIdle(this));
}
Aggregations