本文整理汇总了Java中net.minecraft.entity.ai.EntityAIWanderAvoidWater类的典型用法代码示例。如果您正苦于以下问题:Java EntityAIWanderAvoidWater类的具体用法?Java EntityAIWanderAvoidWater怎么用?Java EntityAIWanderAvoidWater使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EntityAIWanderAvoidWater类属于net.minecraft.entity.ai包,在下文中一共展示了EntityAIWanderAvoidWater类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
this.aiSit = new EntityAISit(this);
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, this.aiSit);
this.tasks.addTask(3, new EntityWolf.AIAvoidEntity(this, EntityLlama.class, 24.0F, 1.5D, 1.5D));
this.tasks.addTask(4, new EntityAILeapAtTarget(this, 0.4F));
this.tasks.addTask(5, new EntityAIAttackMelee(this, 1.0D, true));
this.tasks.addTask(6, new EntityAIFollowOwner(this, 1.0D, 10.0F, 2.0F));
this.tasks.addTask(7, new EntityAIMate(this, 1.0D));
this.tasks.addTask(8, new EntityAIWanderAvoidWater(this, 1.0D));
this.tasks.addTask(9, new EntityAIBeg(this, 8.0F));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(10, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAIOwnerHurtByTarget(this));
this.targetTasks.addTask(2, new EntityAIOwnerHurtTarget(this));
this.targetTasks.addTask(3, new EntityAIHurtByTarget(this, true, new Class[0]));
this.targetTasks.addTask(4, new EntityAITargetNonTamed(this, EntityAnimal.class, false, new Predicate<Entity>()
{
public boolean apply(@Nullable Entity p_apply_1_)
{
return p_apply_1_ instanceof EntitySheep || p_apply_1_ instanceof EntityRabbit;
}
}));
this.targetTasks.addTask(5, new EntityAINearestAttackableTarget(this, AbstractSkeleton.class, false));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:27,代码来源:EntityWolf.java
示例2: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityEvoker.class, 12.0F, 0.8D, 0.8D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityVindicator.class, 8.0F, 0.8D, 0.8D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityVex.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePlayer(this));
this.tasks.addTask(1, new EntityAILookAtTradePlayer(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIVillagerMate(this));
this.tasks.addTask(7, new EntityAIFollowGolem(this));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIVillagerInteract(this));
this.tasks.addTask(9, new EntityAIWanderAvoidWater(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:21,代码来源:EntityVillager.java
示例3: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
this.aiSit = new EntityAISit(this);
this.aiTempt = new EntityAITempt(this, 0.6D, Items.FISH, true);
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, this.aiSit);
this.tasks.addTask(3, this.aiTempt);
this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 5.0F));
this.tasks.addTask(6, new EntityAIOcelotSit(this, 0.8D));
this.tasks.addTask(7, new EntityAILeapAtTarget(this, 0.3F));
this.tasks.addTask(8, new EntityAIOcelotAttack(this));
this.tasks.addTask(9, new EntityAIMate(this, 0.8D));
this.tasks.addTask(10, new EntityAIWanderAvoidWater(this, 0.8D, 1.0000001E-5F));
this.tasks.addTask(11, new EntityAIWatchClosest(this, EntityPlayer.class, 10.0F));
this.targetTasks.addTask(1, new EntityAITargetNonTamed(this, EntityChicken.class, false, (Predicate)null));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:17,代码来源:EntityOcelot.java
示例4: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(2, new EntityAIAttackMelee(this, 1.0D, false));
this.tasks.addTask(7, new EntityAIWanderAvoidWater(this, 1.0D, 0.0F));
this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(8, new EntityAILookIdle(this));
this.tasks.addTask(10, new EntityEnderman.AIPlaceBlock(this));
this.tasks.addTask(11, new EntityEnderman.AITakeBlock(this));
this.targetTasks.addTask(1, new EntityEnderman.AIFindPlayer(this));
this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false, new Class[0]));
this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityEndermite.class, 10, true, false, new Predicate<EntityEndermite>()
{
public boolean apply(@Nullable EntityEndermite p_apply_1_)
{
return p_apply_1_.isSpawnedByPlayer();
}
}));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:20,代码来源:EntityEnderman.java
示例5: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
this.tasks.addTask(1, new EntityAIAttackMelee(this, 1.0D, true));
this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
this.tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(5, new EntityAILookAtVillager(this));
this.tasks.addTask(6, new EntityAIWanderAvoidWater(this, 0.6D));
this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
this.tasks.addTask(8, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAIDefendVillage(this));
this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false, new Class[0]));
this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityLiving.class, 10, false, true, new Predicate<EntityLiving>()
{
public boolean apply(@Nullable EntityLiving p_apply_1_)
{
return p_apply_1_ != null && IMob.VISIBLE_MOB_SELECTOR.apply(p_apply_1_) && !(p_apply_1_ instanceof EntityCreeper);
}
}));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:21,代码来源:EntityIronGolem.java
示例6: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
@Override
protected void initEntityAI() {
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(0, new EntityAIAttackMelee(this, 1d, true));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityEnderman.class, 10f, 1d, 1.2d));
this.tasks.addTask(0, new EntityAIWanderAvoidWater(this, 0.35));
this.tasks.addTask(0, new EntityAIMoveTowardsTarget(this, 0.5d, 100));
this.targetTasks.addTask(0, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true));
}
开发者ID:kenijey,项目名称:harshencastle,代码行数:11,代码来源:EntityHarshenSoul.java
示例7: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI() {
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(5, new EntityAIWanderAvoidWater(this, 1.0D));
this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(6, new EntityAILookIdle(this));
this.applyEntityAI();
}
开发者ID:the-realest-stu,项目名称:Infernum,代码行数:8,代码来源:EntityPigZombieMage.java
示例8: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
@Override
public void initEntityAI() {
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityPigZombieMage.class, 8.0F, 0.8D, 0.8D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityPigZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWanderAvoidWater(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
this.applyEntityAI();
}
开发者ID:the-realest-stu,项目名称:Infernum,代码行数:15,代码来源:EntityPigMage.java
示例9: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI() {
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(2, new EntityAIAttackMelee(this, 2.0D, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(7, new EntityAIWanderAvoidWater(this, 1.0D));
this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(8, new EntityAILookIdle(this));
this.applyEntityAI();
}
开发者ID:the-realest-stu,项目名称:Etheric,代码行数:10,代码来源:EntityLesserCelestial.java
示例10: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityRabbit.AIPanic(this, 2.2D));
this.tasks.addTask(2, new EntityAIMate(this, 0.8D));
this.tasks.addTask(3, new EntityAITempt(this, 1.0D, Items.CARROT, false));
this.tasks.addTask(3, new EntityAITempt(this, 1.0D, Items.GOLDEN_CARROT, false));
this.tasks.addTask(3, new EntityAITempt(this, 1.0D, Item.getItemFromBlock(Blocks.YELLOW_FLOWER), false));
this.tasks.addTask(4, new EntityRabbit.AIAvoidEntity(this, EntityPlayer.class, 8.0F, 2.2D, 2.2D));
this.tasks.addTask(4, new EntityRabbit.AIAvoidEntity(this, EntityWolf.class, 10.0F, 2.2D, 2.2D));
this.tasks.addTask(4, new EntityRabbit.AIAvoidEntity(this, EntityMob.class, 4.0F, 2.2D, 2.2D));
this.tasks.addTask(5, new EntityRabbit.AIRaidFarm(this));
this.tasks.addTask(6, new EntityAIWanderAvoidWater(this, 0.6D));
this.tasks.addTask(11, new EntityAIWatchClosest(this, EntityPlayer.class, 10.0F));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:16,代码来源:EntityRabbit.java
示例11: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIRunAroundLikeCrazy(this, 1.2D));
this.tasks.addTask(2, new EntityAILlamaFollowCaravan(this, 2.0999999046325684D));
this.tasks.addTask(3, new EntityAIAttackRanged(this, 1.25D, 40, 20.0F));
this.tasks.addTask(3, new EntityAIPanic(this, 1.2D));
this.tasks.addTask(4, new EntityAIMate(this, 1.0D));
this.tasks.addTask(5, new EntityAIFollowParent(this, 1.0D));
this.tasks.addTask(6, new EntityAIWanderAvoidWater(this, 0.7D));
this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
this.tasks.addTask(8, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityLlama.AIHurtByTarget(this));
this.targetTasks.addTask(2, new EntityLlama.AIDefendTarget(this));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:16,代码来源:EntityLlama.java
示例12: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIPanic(this, 1.4D));
this.tasks.addTask(2, new EntityAIMate(this, 1.0D));
this.tasks.addTask(3, new EntityAITempt(this, 1.0D, false, TEMPTATION_ITEMS));
this.tasks.addTask(4, new EntityAIFollowParent(this, 1.1D));
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));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:12,代码来源:EntityChicken.java
示例13: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIPanic(this, 1.2D));
this.tasks.addTask(1, new EntityAIRunAroundLikeCrazy(this, 1.2D));
this.tasks.addTask(2, new EntityAIMate(this, 1.0D, AbstractHorse.class));
this.tasks.addTask(4, new EntityAIFollowParent(this, 1.0D));
this.tasks.addTask(6, new EntityAIWanderAvoidWater(this, 0.7D));
this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
this.tasks.addTask(8, new EntityAILookIdle(this));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:12,代码来源:AbstractHorse.java
示例14: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
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, Items.WHEAT, false));
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));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:12,代码来源:EntityCow.java
示例15: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
this.entityAIEatGrass = new EntityAIEatGrass(this);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIPanic(this, 1.25D));
this.tasks.addTask(2, new EntityAIMate(this, 1.0D));
this.tasks.addTask(3, new EntityAITempt(this, 1.1D, Items.WHEAT, false));
this.tasks.addTask(4, new EntityAIFollowParent(this, 1.1D));
this.tasks.addTask(5, this.entityAIEatGrass);
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));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:14,代码来源:EntitySheep.java
示例16: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
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));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:13,代码来源:EntityPig.java
示例17: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, new EntityAIAttackMelee(this, 1.0D, false));
this.tasks.addTask(3, new EntityAIWanderAvoidWater(this, 1.0D));
this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(8, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true, new Class[0]));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:11,代码来源:EntityEndermite.java
示例18: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
this.tasks.addTask(1, new EntityAIAttackRanged(this, 1.25D, 20, 10.0F));
this.tasks.addTask(2, new EntityAIWanderAvoidWater(this, 1.0D, 1.0000001E-5F));
this.tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
this.tasks.addTask(4, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityLiving.class, 10, true, false, IMob.MOB_SELECTOR));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:9,代码来源:EntitySnowman.java
示例19: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
this.tasks.addTask(4, new EntityBlaze.AIFireballAttack(this));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(7, new EntityAIWanderAvoidWater(this, 1.0D, 0.0F));
this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(8, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true, new Class[0]));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:11,代码来源:EntityBlaze.java
示例20: initEntityAI
import net.minecraft.entity.ai.EntityAIWanderAvoidWater; //导入依赖的package包/类
protected void initEntityAI()
{
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, new EntityAIAttackRanged(this, 1.0D, 60, 10.0F));
this.tasks.addTask(2, new EntityAIWanderAvoidWater(this, 1.0D));
this.tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(3, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false, new Class[0]));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:11,代码来源:EntityWitch.java
注:本文中的net.minecraft.entity.ai.EntityAIWanderAvoidWater类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论