Search in sources :

Example 6 with RangedAttack

use of de.Keyle.MyPet.compat.v1_9_R2.entity.ai.attack.RangedAttack in project MyPet by xXKeyleXx.

the class EntityMyPet method setPathfinder.

public void setPathfinder() {
    petPathfinderSelector.addGoal("Float", new Float(this));
    petPathfinderSelector.addGoal("Sit", sitPathfinder);
    petPathfinderSelector.addGoal("Sprint", new Sprint(this, 0.25F));
    petPathfinderSelector.addGoal("RangedTarget", new RangedAttack(this, -0.1F, 12.0F));
    petPathfinderSelector.addGoal("MeleeAttack", new MeleeAttack(this, 0.1F, this.width + 1.3, 20));
    petPathfinderSelector.addGoal("Control", new Control(this, 0.1F));
    petPathfinderSelector.addGoal("FollowOwner", new FollowOwner(this, Configuration.Entity.MYPET_FOLLOW_START_DISTANCE, 2.0F, 16F));
    petPathfinderSelector.addGoal("LookAtPlayer", new LookAtPlayer(this, 8.0F));
    petPathfinderSelector.addGoal("RandomLockaround", new RandomLookaround(this));
    petTargetSelector.addGoal("OwnerHurtByTarget", new OwnerHurtByTarget(this));
    petTargetSelector.addGoal("HurtByTarget", new HurtByTarget(this));
    petTargetSelector.addGoal("ControlTarget", new ControlTarget(this, 1));
    petTargetSelector.addGoal("AggressiveTarget", new BehaviorAggressiveTarget(this, 15));
    petTargetSelector.addGoal("FarmTarget", new BehaviorFarmTarget(this, 15));
    petTargetSelector.addGoal("DuelTarget", new BehaviorDuelTarget(this, 5));
}
Also used : RangedAttack(de.Keyle.MyPet.compat.v1_12_R1.entity.ai.attack.RangedAttack) MeleeAttack(de.Keyle.MyPet.compat.v1_12_R1.entity.ai.attack.MeleeAttack) Float(de.Keyle.MyPet.compat.v1_12_R1.entity.ai.movement.Float)

Example 7 with RangedAttack

use of de.Keyle.MyPet.compat.v1_9_R2.entity.ai.attack.RangedAttack in project MyPet by xXKeyleXx.

the class EntityMyPet method setPathfinder.

@Override
public void setPathfinder() {
    petPathfinderSelector.addGoal("Float", new Float(this));
    petPathfinderSelector.addGoal("Sit", sitPathfinder);
    petPathfinderSelector.addGoal("Sprint", new Sprint(this, 0.25F));
    petPathfinderSelector.addGoal("RangedTarget", new RangedAttack(this, -0.1F, 12.0F));
    petPathfinderSelector.addGoal("MeleeAttack", new MeleeAttack(this, 0.1F, this.getWidth() + 1.3, 20));
    petPathfinderSelector.addGoal("Control", new Control(this, 0.1F));
    petPathfinderSelector.addGoal("FollowOwner", new FollowOwner(this, Configuration.Entity.MYPET_FOLLOW_START_DISTANCE, 2.0F, 16F));
    petPathfinderSelector.addGoal("LookAtPlayer", new LookAtPlayer(this, 8.0F));
    petPathfinderSelector.addGoal("RandomLockaround", new RandomLookaround(this));
    petTargetSelector.addGoal("OwnerHurtByTarget", new OwnerHurtByTarget(this));
    petTargetSelector.addGoal("HurtByTarget", new HurtByTarget(this));
    petTargetSelector.addGoal("ControlTarget", new ControlTarget(this, 1));
    petTargetSelector.addGoal("AggressiveTarget", new BehaviorAggressiveTarget(this, 16));
    petTargetSelector.addGoal("FarmTarget", new BehaviorFarmTarget(this, 16));
    petTargetSelector.addGoal("DuelTarget", new BehaviorDuelTarget(this, 5));
}
Also used : RangedAttack(de.Keyle.MyPet.compat.v1_16_R3.entity.ai.attack.RangedAttack) MeleeAttack(de.Keyle.MyPet.compat.v1_16_R3.entity.ai.attack.MeleeAttack) Float(de.Keyle.MyPet.compat.v1_16_R3.entity.ai.movement.Float)

Example 8 with RangedAttack

use of de.Keyle.MyPet.compat.v1_9_R2.entity.ai.attack.RangedAttack in project MyPet by xXKeyleXx.

the class EntityMyPet method setPathfinder.

public void setPathfinder() {
    petPathfinderSelector.addGoal("Float", new Float(this));
    petPathfinderSelector.addGoal("Sit", sitPathfinder);
    petPathfinderSelector.addGoal("Sprint", new Sprint(this, 0.25F));
    petPathfinderSelector.addGoal("RangedTarget", new RangedAttack(this, -0.1F, 12.0F));
    petPathfinderSelector.addGoal("MeleeAttack", new MeleeAttack(this, 0.1F, this.width + 1.3, 20));
    petPathfinderSelector.addGoal("Control", new Control(this, 0.1F));
    petPathfinderSelector.addGoal("FollowOwner", new FollowOwner(this, Configuration.Entity.MYPET_FOLLOW_START_DISTANCE, 2.0F, 16F));
    petPathfinderSelector.addGoal("LookAtPlayer", new LookAtPlayer(this, 8.0F));
    petPathfinderSelector.addGoal("RandomLockaround", new RandomLookaround(this));
    petTargetSelector.addGoal("OwnerHurtByTarget", new OwnerHurtByTarget(this));
    petTargetSelector.addGoal("HurtByTarget", new HurtByTarget(this));
    petTargetSelector.addGoal("ControlTarget", new ControlTarget(this, 1));
    petTargetSelector.addGoal("AggressiveTarget", new BehaviorAggressiveTarget(this, 15));
    petTargetSelector.addGoal("FarmTarget", new BehaviorFarmTarget(this, 15));
    petTargetSelector.addGoal("DuelTarget", new BehaviorDuelTarget(this, 5));
}
Also used : RangedAttack(de.Keyle.MyPet.compat.v1_8_R3.entity.ai.attack.RangedAttack) MeleeAttack(de.Keyle.MyPet.compat.v1_8_R3.entity.ai.attack.MeleeAttack) Float(de.Keyle.MyPet.compat.v1_8_R3.entity.ai.movement.Float)

Example 9 with RangedAttack

use of de.Keyle.MyPet.compat.v1_9_R2.entity.ai.attack.RangedAttack in project MyPet by xXKeyleXx.

the class EntityMyPet method setPathfinder.

public void setPathfinder() {
    petPathfinderSelector.addGoal("Float", new Float(this));
    petPathfinderSelector.addGoal("Sit", sitPathfinder);
    petPathfinderSelector.addGoal("Sprint", new Sprint(this, 0.25F));
    petPathfinderSelector.addGoal("RangedTarget", new RangedAttack(this, -0.1F, 12.0F));
    petPathfinderSelector.addGoal("MeleeAttack", new MeleeAttack(this, 0.1F, this.width + 1.3, 20));
    petPathfinderSelector.addGoal("Control", new Control(this, 0.1F));
    petPathfinderSelector.addGoal("FollowOwner", new FollowOwner(this, Configuration.Entity.MYPET_FOLLOW_START_DISTANCE, 2.0F, 16F));
    petPathfinderSelector.addGoal("LookAtPlayer", new LookAtPlayer(this, 8.0F));
    petPathfinderSelector.addGoal("RandomLockaround", new RandomLookaround(this));
    petTargetSelector.addGoal("OwnerHurtByTarget", new OwnerHurtByTarget(this));
    petTargetSelector.addGoal("HurtByTarget", new HurtByTarget(this));
    petTargetSelector.addGoal("ControlTarget", new ControlTarget(this, 1));
    petTargetSelector.addGoal("AggressiveTarget", new BehaviorAggressiveTarget(this, 15));
    petTargetSelector.addGoal("FarmTarget", new BehaviorFarmTarget(this, 15));
    petTargetSelector.addGoal("DuelTarget", new BehaviorDuelTarget(this, 5));
}
Also used : RangedAttack(de.Keyle.MyPet.compat.v1_9_R2.entity.ai.attack.RangedAttack) MeleeAttack(de.Keyle.MyPet.compat.v1_9_R2.entity.ai.attack.MeleeAttack) Float(de.Keyle.MyPet.compat.v1_9_R2.entity.ai.movement.Float)

Example 10 with RangedAttack

use of de.Keyle.MyPet.compat.v1_9_R2.entity.ai.attack.RangedAttack in project MyPet by xXKeyleXx.

the class EntityMyPet method setPathfinder.

public void setPathfinder() {
    petPathfinderSelector.addGoal("Float", new Float(this));
    petPathfinderSelector.addGoal("Sit", sitPathfinder);
    petPathfinderSelector.addGoal("Sprint", new Sprint(this, 0.25F));
    petPathfinderSelector.addGoal("RangedTarget", new RangedAttack(this, -0.1F, 12.0F));
    petPathfinderSelector.addGoal("MeleeAttack", new MeleeAttack(this, 0.1F, 1.5, 20));
    petPathfinderSelector.addGoal("Control", new Control(this, 0.1F));
    petPathfinderSelector.addGoal("FollowOwner", new FollowOwner(this, Configuration.Misc.MYPET_FOLLOW_START_DISTANCE, 2.0F, 16F));
    petPathfinderSelector.addGoal("LookAtPlayer", new LookAtPlayer(this, 8.0F));
    petPathfinderSelector.addGoal("RandomLockaround", new RandomLookaround(this));
    petTargetSelector.addGoal("OwnerHurtByTarget", new OwnerHurtByTarget(this));
    petTargetSelector.addGoal("OwnerHurtTarget", new OwnerHurtTarget(this));
    petTargetSelector.addGoal("HurtByTarget", new HurtByTarget(this));
    petTargetSelector.addGoal("ControlTarget", new ControlTarget(this, 1));
    petTargetSelector.addGoal("AggressiveTarget", new BehaviorAggressiveTarget(this, 15));
    petTargetSelector.addGoal("FarmTarget", new BehaviorFarmTarget(this, 15));
    petTargetSelector.addGoal("DuelTarget", new BehaviorDuelTarget(this, 5));
}
Also used : RangedAttack(de.Keyle.MyPet.compat.v1_8_R1.entity.ai.attack.RangedAttack) MeleeAttack(de.Keyle.MyPet.compat.v1_8_R1.entity.ai.attack.MeleeAttack) Float(de.Keyle.MyPet.compat.v1_8_R1.entity.ai.movement.Float)

Aggregations

MeleeAttack (de.Keyle.MyPet.compat.v1_10_R1.entity.ai.attack.MeleeAttack)1 RangedAttack (de.Keyle.MyPet.compat.v1_10_R1.entity.ai.attack.RangedAttack)1 Float (de.Keyle.MyPet.compat.v1_10_R1.entity.ai.movement.Float)1 MeleeAttack (de.Keyle.MyPet.compat.v1_11_R1.entity.ai.attack.MeleeAttack)1 RangedAttack (de.Keyle.MyPet.compat.v1_11_R1.entity.ai.attack.RangedAttack)1 Float (de.Keyle.MyPet.compat.v1_11_R1.entity.ai.movement.Float)1 MeleeAttack (de.Keyle.MyPet.compat.v1_12_R1.entity.ai.attack.MeleeAttack)1 RangedAttack (de.Keyle.MyPet.compat.v1_12_R1.entity.ai.attack.RangedAttack)1 Float (de.Keyle.MyPet.compat.v1_12_R1.entity.ai.movement.Float)1 MeleeAttack (de.Keyle.MyPet.compat.v1_16_R1.entity.ai.attack.MeleeAttack)1 RangedAttack (de.Keyle.MyPet.compat.v1_16_R1.entity.ai.attack.RangedAttack)1 Float (de.Keyle.MyPet.compat.v1_16_R1.entity.ai.movement.Float)1 MeleeAttack (de.Keyle.MyPet.compat.v1_16_R3.entity.ai.attack.MeleeAttack)1 RangedAttack (de.Keyle.MyPet.compat.v1_16_R3.entity.ai.attack.RangedAttack)1 Float (de.Keyle.MyPet.compat.v1_16_R3.entity.ai.movement.Float)1 MeleeAttack (de.Keyle.MyPet.compat.v1_7_R4.entity.ai.attack.MeleeAttack)1 RangedAttack (de.Keyle.MyPet.compat.v1_7_R4.entity.ai.attack.RangedAttack)1 Float (de.Keyle.MyPet.compat.v1_7_R4.entity.ai.movement.Float)1 MeleeAttack (de.Keyle.MyPet.compat.v1_8_R1.entity.ai.attack.MeleeAttack)1 RangedAttack (de.Keyle.MyPet.compat.v1_8_R1.entity.ai.attack.RangedAttack)1