use of de.Keyle.MyPet.compat.v1_8_R3.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));
}
Aggregations