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

项目:DecompiledMinecraft    文件:EntityWither.java   
public EntityWither(World worldIn)
{
    super(worldIn);
    this.setHealth(this.getMaxHealth());
    this.setSize(0.9F, 3.5F);
    this.isImmuneToFire = true;
    ((PathNavigateGround)this.getNavigator()).setCanSwim(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 40, 20.0F));
    this.tasks.addTask(5, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(7, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false, new Class[0]));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, false, attackEntitySelector));
    this.experienceValue = 50;
}
项目:DecompiledMinecraft    文件:EntityWither.java   
public EntityWither(World worldIn)
{
    super(worldIn);
    this.setHealth(this.getMaxHealth());
    this.setSize(0.9F, 3.5F);
    this.isImmuneToFire = true;
    ((PathNavigateGround)this.getNavigator()).setCanSwim(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 40, 20.0F));
    this.tasks.addTask(5, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(7, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false, new Class[0]));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, false, attackEntitySelector));
    this.experienceValue = 50;
}
项目:BaseClient    文件:EntityWither.java   
public EntityWither(World worldIn)
{
    super(worldIn);
    this.setHealth(this.getMaxHealth());
    this.setSize(0.9F, 3.5F);
    this.isImmuneToFire = true;
    ((PathNavigateGround)this.getNavigator()).setCanSwim(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 40, 20.0F));
    this.tasks.addTask(5, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(7, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false, new Class[0]));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, false, attackEntitySelector));
    this.experienceValue = 50;
}
项目:BaseClient    文件:EntityWither.java   
public EntityWither(World worldIn)
{
    super(worldIn);
    this.setHealth(this.getMaxHealth());
    this.setSize(0.9F, 3.5F);
    this.isImmuneToFire = true;
    ((PathNavigateGround)this.getNavigator()).setCanSwim(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 40, 20.0F));
    this.tasks.addTask(5, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(7, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false, new Class[0]));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, false, attackEntitySelector));
    this.experienceValue = 50;
}
项目:witchery    文件:EntityHornedHuntsman.java   
public EntityHornedHuntsman(World par1World) {
   super(par1World);
   this.setSize(1.4F, 3.2F);
   super.isImmuneToFire = true;
   this.getNavigator().setAvoidsWater(true);
   this.getNavigator().setCanSwim(true);
   super.tasks.addTask(1, new EntityAISwimming(this));
   super.tasks.addTask(2, new EntityAIAttackOnCollide(this, 1.0D, true));
   super.tasks.addTask(3, new EntityAIMoveTowardsTarget(this, 1.0D, 48.0F));
   super.tasks.addTask(4, new EntityAIArrowAttack(this, 1.0D, 20, 60, 30.0F));
   super.tasks.addTask(5, new EntityAIWander(this, 1.0D));
   super.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
   super.tasks.addTask(7, new EntityAILookIdle(this));
   super.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
   super.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
   super.experienceValue = 70;
}
项目:PopularMMOS-EpicProportions-Mod    文件:EntityNinjaMaster.java   
public EntityNinjaMaster(World p_i1745_1_)
{
    super(p_i1745_1_);
    this.getNavigator().setBreakDoors(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, true));
    this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 1.0D, false));
    this.tasks.addTask(7, new EntityAIWander(this, 1.0D));
    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));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
    //this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
    this.tasks.addTask(1, new EntityAIArrowAttack(this, 1.0D, 20, 60, 15.0F));

    this.setSize(0.6F, 1.8F);
}
项目:Coding    文件:EntityLongbowGuard.java   
public EntityLongbowGuard(World world){
    super(world);
    if (this.worldObj.difficultySetting == EnumDifficulty.EASY)
        this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, true));
    else
        this.tasks.addTask(1, new EntityAIArrowAttack(this, 1.0D, 20, 60, 15.0F));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityCreature.class, 0, true, false, 
            new IEntitySelector() {
                public boolean isEntityApplicable(Entity entity) {
                    if (!isLookingForHome && ((EntityCreature) entity).isWithinHomeDistanceCurrentPosition() && entity instanceof EntityZombie)
                        return true;
                    return false;
                }
        }));                
    setGuardWeaponType(type);
}
项目:Coding    文件:EntityCrossbowGuard.java   
public EntityCrossbowGuard(World world){
    super(world);
    if (this.worldObj.difficultySetting == EnumDifficulty.EASY)
        this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, true));
    else
        this.tasks.addTask(1, new EntityAIArrowAttack(this, 1.0D, 20, 60, 15.0F));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityCreature.class, 0, true, false, 
            new IEntitySelector() {
                public boolean isEntityApplicable(Entity entity) {
                    if (!isLookingForHome && ((EntityCreature) entity).isWithinHomeDistanceCurrentPosition() && entity instanceof EntityZombie)
                        return true;
                    return false;
                }
        }));                
    setGuardWeaponType(type);
}
项目:Resilience-Client-Source    文件:EntityWither.java   
public EntityWither(World par1World)
{
    super(par1World);
    this.setHealth(this.getMaxHealth());
    this.setSize(0.9F, 4.0F);
    this.isImmuneToFire = true;
    this.getNavigator().setCanSwim(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 40, 20.0F));
    this.tasks.addTask(5, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(7, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, false, attackEntitySelector));
    this.experienceValue = 50;
}
项目:MineFantasy    文件:EntitySkeletalKnight.java   
public EntitySkeletalKnight(World world) 
{
    super(world);
    setWeapon((byte)0);

    this.tasks.addTask(3, new EntityAIArrowAttack(this, 0.25F, 20, 60, 15.0F));
    this.tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F));

    this.tasks.addTask(0, new EntityAISwimming(this));
       this.tasks.addTask(1, new EntityAIBreakDoorAnimate(this));
       this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
       this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityLiving.class, 1.0D, true));
       this.tasks.addTask(5, new EntityAIMoveThroughVillage(this, 1.0D, false));
       this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
       this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
       this.tasks.addTask(7, new EntityAILookIdle(this));
       this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));

       this.equipmentDropChances[0] = 2.0F;
}
项目:Cauldron    文件:EntityWither.java   
public EntityWither(World p_i1701_1_)
{
    super(p_i1701_1_);
    this.setHealth(this.getMaxHealth());
    this.setSize(0.9F, 4.0F);
    this.isImmuneToFire = true;
    this.getNavigator().setCanSwim(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 40, 20.0F));
    this.tasks.addTask(5, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(7, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, false, attackEntitySelector));
    this.experienceValue = 50;
}
项目:Cauldron    文件:EntityWither.java   
public EntityWither(World p_i1701_1_)
{
    super(p_i1701_1_);
    this.setHealth(this.getMaxHealth());
    this.setSize(0.9F, 4.0F);
    this.isImmuneToFire = true;
    this.getNavigator().setCanSwim(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 40, 20.0F));
    this.tasks.addTask(5, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(7, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, false, attackEntitySelector));
    this.experienceValue = 50;
}
项目:RuneCraftery    文件:EntityWither.java   
public EntityWither(World par1World)
{
    super(par1World);
    this.setHealth(this.getMaxHealth());
    this.setSize(0.9F, 4.0F);
    this.isImmuneToFire = true;
    this.getNavigator().setCanSwim(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 40, 20.0F));
    this.tasks.addTask(5, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(7, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, false, attackEntitySelector));
    this.experienceValue = 50;
}
项目:BetterNutritionMod    文件:EntityWither.java   
public EntityWither(World par1World)
{
    super(par1World);
    this.setHealth(this.getMaxHealth());
    this.setSize(0.9F, 4.0F);
    this.isImmuneToFire = true;
    this.getNavigator().setCanSwim(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 40, 20.0F));
    this.tasks.addTask(5, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(7, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, false, attackEntitySelector));
    this.experienceValue = 50;
}
项目:Necromancy    文件:EntityIsaacNormal.java   
public EntityIsaacNormal(World par1World) {
    super(par1World);
    isImmuneToFire = true;
    setSize(0.6F, 1.8F);
    moveSpeed = 0.25F;
    tasks.addTask(1, new EntityAISwimming(this));
    tasks.addTask(2, new EntityAIRestrictSun(this));
    tasks.addTask(3, new EntityAIFleeSun(this, moveSpeed));
    tasks.addTask(5, new EntityAIWander(this, moveSpeed));
    tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    tasks.addTask(6, new EntityAILookIdle(this));
    targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
    targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
    if (!par1World.isRemote) {
        tasks.addTask(1, new EntityAIArrowAttack(this, moveSpeed, 18, 50F));
    }
}
项目:Amitcraft    文件:EntityBehlmann.java   
public EntityBehlmann(World par1World) {
    super(par1World);
    this.texture = AmitReference.Sprites.MOB_TEXTURE_PATH + "behlmann.png";
    this.moveSpeed = this.stepHeight = 1.0F;

    this.getNavigator().setAvoidsWater(true);
    this.getNavigator().setCanSwim(true);

    this.tasks.addTask(1, new EntityAIArrowAttack(this, 0.25F, 20, 10.0F));
    this.tasks.addTask(2, new EntityAIAttackOnCollide(this, 0.25F, true));
    this.tasks.addTask(3, new EntityAIMoveTowardsTarget(this, 0.22F, 32.0F));
    this.tasks.addTask(4, new EntityAIMoveThroughVillage(this, 0.16F, true));
    this.tasks.addTask(5, new EntityAIMoveTwardsRestriction(this, 0.16F));
    this.tasks.addTask(6, new EntityAIWander(this, 0.16F));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    this.tasks.addTask(9, new EntityAIPanic(this, 0.38F));
    this.tasks.addTask(10, new EntityAITempt(this, 0.25F, Block.brewingStand.blockID, false));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityAnimal.class, 16.0F, 0, false));
}
项目:Amitcraft    文件:EntityTComp.java   
public EntityTComp(World par1World) {
    super(par1World);
    this.texture = AmitReference.Sprites.MOB_TEXTURE_PATH + "TComp.png";
    this.moveSpeed = this.stepHeight = 1.0F;

    this.moveSpeed = 0.75F;
    this.stepHeight = 2.0F;

    this.getNavigator().setBreakDoors(true);
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(1, new EntityAIArrowAttack(this, 0.25F, 20, 10.0F));
    this.tasks.addTask(1, new EntityAIWander(this, 0.3F));
    this.tasks.addTask(2, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.3F, 0.35F));
    this.tasks.addTask(3, new EntityAIMoveIndoors(this));
    this.tasks.addTask(4, new EntityAIRestrictOpenDoor(this));
    this.tasks.addTask(5, new EntityAIOpenDoor(this, true));
    this.tasks.addTask(6, new EntityAIMoveTwardsRestriction(this, 0.3F));
    this.tasks.addTask(7, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
    this.tasks.addTask(8, new EntityAIWatchClosest2(this, EntityCow.class, 5.0F, 0.02F));
    this.tasks.addTask(9, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityMob.class, 16.0F, 0, false));
    this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityCreeper.class, 16.0F, 0, false));
    this.targetTasks.addTask(4, new EntityAINearestAttackableTarget(this, EntityLiving.class, 16.0F, 0, false, true, IMob.mobSelector));
}
项目:DecompiledMinecraft    文件:EntitySnowman.java   
public EntitySnowman(World worldIn)
{
    super(worldIn);
    this.setSize(0.7F, 1.9F);
    ((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAIArrowAttack(this, 1.25D, 20, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(this, 1.0D));
    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.mobSelector));
}
项目:DecompiledMinecraft    文件:EntityWitch.java   
public EntityWitch(World worldIn)
{
    super(worldIn);
    this.setSize(0.6F, 1.95F);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 60, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(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));
}
项目:DecompiledMinecraft    文件:EntitySnowman.java   
public EntitySnowman(World worldIn)
{
    super(worldIn);
    this.setSize(0.7F, 1.9F);
    ((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAIArrowAttack(this, 1.25D, 20, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(this, 1.0D));
    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.mobSelector));
}
项目:DecompiledMinecraft    文件:EntityWitch.java   
public EntityWitch(World worldIn)
{
    super(worldIn);
    this.setSize(0.6F, 1.95F);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 60, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(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));
}
项目:BaseClient    文件:EntitySnowman.java   
public EntitySnowman(World worldIn)
{
    super(worldIn);
    this.setSize(0.7F, 1.9F);
    ((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAIArrowAttack(this, 1.25D, 20, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(this, 1.0D));
    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.mobSelector));
}
项目:BaseClient    文件:EntityWitch.java   
public EntityWitch(World worldIn)
{
    super(worldIn);
    this.setSize(0.6F, 1.95F);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 60, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(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));
}
项目:BaseClient    文件:EntitySnowman.java   
public EntitySnowman(World worldIn)
{
    super(worldIn);
    this.setSize(0.7F, 1.9F);
    ((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAIArrowAttack(this, 1.25D, 20, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(this, 1.0D));
    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.mobSelector));
}
项目:BaseClient    文件:EntityWitch.java   
public EntityWitch(World worldIn)
{
    super(worldIn);
    this.setSize(0.6F, 1.95F);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 60, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(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));
}
项目:4Space-5    文件:EntityEvolvedSkeleton.java   
public EntityEvolvedSkeleton(World par1World)
{
    super(par1World);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIRestrictSun(this));
    this.tasks.addTask(3, new EntityAIFleeSun(this, 0.25F));
    this.tasks.addTask(4, new EntityAIArrowAttack(this, 0.25F, 25, 20));
    this.tasks.addTask(5, new EntityAIWander(this, 0.25F));
    this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(6, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
    this.setSize(0.7F, 2.5F);
}
项目:MidgarCrusade    文件:EntitySnowCube.java   
public EntitySnowCube(World p_i1692_1_)
{
    super(p_i1692_1_);
    this.setSize(0.4F, 1.8F);
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAIArrowAttack(this, 1.25D, 1, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(this, 1.0D));
    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, 0, true, false, IMob.mobSelector));
}
项目:Resilience-Client-Source    文件:EntitySnowman.java   
public EntitySnowman(World par1World)
{
    super(par1World);
    this.setSize(0.4F, 1.8F);
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAIArrowAttack(this, 1.25D, 20, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(this, 1.0D));
    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, 0, true, false, IMob.mobSelector));
}
项目:Resilience-Client-Source    文件:EntityWitch.java   
public EntityWitch(World par1World)
{
    super(par1World);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 60, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(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));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
}
项目:Cauldron    文件:EntitySnowman.java   
public EntitySnowman(World p_i1692_1_)
{
    super(p_i1692_1_);
    this.setSize(0.4F, 1.8F);
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAIArrowAttack(this, 1.25D, 20, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(this, 1.0D));
    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, 0, true, false, IMob.mobSelector));
}
项目:Cauldron    文件:EntityWitch.java   
public EntityWitch(World p_i1744_1_)
{
    super(p_i1744_1_);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 60, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(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));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
}
项目:Cauldron    文件:EntitySnowman.java   
public EntitySnowman(World p_i1692_1_)
{
    super(p_i1692_1_);
    this.setSize(0.4F, 1.8F);
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAIArrowAttack(this, 1.25D, 20, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(this, 1.0D));
    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, 0, true, false, IMob.mobSelector));
}
项目:Cauldron    文件:EntityWitch.java   
public EntityWitch(World p_i1744_1_)
{
    super(p_i1744_1_);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 60, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(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));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
}
项目:RuneCraftery    文件:EntitySnowman.java   
public EntitySnowman(World p_i1692_1_) {
   super(p_i1692_1_);
   this.func_70105_a(0.4F, 1.8F);
   this.func_70661_as().func_75491_a(true);
   this.field_70714_bg.func_75776_a(1, new EntityAIArrowAttack(this, 1.25D, 20, 10.0F));
   this.field_70714_bg.func_75776_a(2, new EntityAIWander(this, 1.0D));
   this.field_70714_bg.func_75776_a(3, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
   this.field_70714_bg.func_75776_a(4, new EntityAILookIdle(this));
   this.field_70715_bh.func_75776_a(1, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, true, false, IMob.field_82192_a));
}
项目:RuneCraftery    文件:EntityWitch.java   
public EntityWitch(World p_i1744_1_) {
   super(p_i1744_1_);
   this.field_70714_bg.func_75776_a(1, new EntityAISwimming(this));
   this.field_70714_bg.func_75776_a(2, new EntityAIArrowAttack(this, 1.0D, 60, 10.0F));
   this.field_70714_bg.func_75776_a(2, new EntityAIWander(this, 1.0D));
   this.field_70714_bg.func_75776_a(3, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
   this.field_70714_bg.func_75776_a(3, new EntityAILookIdle(this));
   this.field_70715_bh.func_75776_a(1, new EntityAIHurtByTarget(this, false));
   this.field_70715_bh.func_75776_a(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
}
项目:RuneCraftery    文件:EntityWither.java   
public EntityWither(World p_i1701_1_) {
   super(p_i1701_1_);
   this.func_70606_j(this.func_110138_aP());
   this.func_70105_a(0.9F, 4.0F);
   this.field_70178_ae = true;
   this.func_70661_as().func_75495_e(true);
   this.field_70714_bg.func_75776_a(0, new EntityAISwimming(this));
   this.field_70714_bg.func_75776_a(2, new EntityAIArrowAttack(this, 1.0D, 40, 20.0F));
   this.field_70714_bg.func_75776_a(5, new EntityAIWander(this, 1.0D));
   this.field_70714_bg.func_75776_a(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
   this.field_70714_bg.func_75776_a(7, new EntityAILookIdle(this));
   this.field_70715_bh.func_75776_a(1, new EntityAIHurtByTarget(this, false));
   this.field_70715_bh.func_75776_a(2, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, false, field_82219_bJ));
   this.field_70728_aV = 50;
}
项目:RuneCraftery    文件:EntitySnowman.java   
public EntitySnowman(World par1World)
{
    super(par1World);
    this.setSize(0.4F, 1.8F);
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAIArrowAttack(this, 1.25D, 20, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(this, 1.0D));
    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, 0, true, false, IMob.mobSelector));
}
项目:RuneCraftery    文件:EntityWitch.java   
public EntityWitch(World par1World)
{
    super(par1World);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.0D, 60, 10.0F));
    this.tasks.addTask(2, new EntityAIWander(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));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
}
项目:CountryGamer_PlantsVsZombies    文件:EntityCreeperRepeater.java   
public void ai()
{
  this.tasks.addTask(1, new EntityAIArrowAttack(this, 0.0D, 20, this.range));

  this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, true, false, IMob.mobSelector));

  this.tasks.addTask(9, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
  this.tasks.addTask(10, new EntityAILookIdle(this));
}
项目:CountryGamer_PlantsVsZombies    文件:EntityShroomShooterBase.java   
public void ai()
{
  this.tasks.addTask(1, new EntityAIArrowAttack(this, 0.25D, 20, 10.0F));
  this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, true, false, IMob.mobSelector));

  this.tasks.addTask(9, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
  this.tasks.addTask(10, new EntityAILookIdle(this));
}