Search in sources :

Example 41 with MeleeAttack

use of de.Keyle.MyPet.compat.v1_18_R1.entity.ai.attack.MeleeAttack in project MyPet by xXKeyleXx.

the class EntityMyGhast method setPathfinder.

@Override
public void setPathfinder() {
    super.setPathfinder();
    petPathfinderSelector.replaceGoal("MeleeAttack", new MeleeAttack(this, 0.1F, 5.5, 20));
}
Also used : MeleeAttack(de.Keyle.MyPet.compat.v1_16_R3.entity.ai.attack.MeleeAttack)

Example 42 with MeleeAttack

use of de.Keyle.MyPet.compat.v1_18_R1.entity.ai.attack.MeleeAttack in project MyPet by xXKeyleXx.

the class EntityMyEnderDragon method setPathfinder.

@Override
public void setPathfinder() {
    super.setPathfinder();
    petPathfinderSelector.replaceGoal("MeleeAttack", new MeleeAttack(this, 0.1F, 8.5, 20));
}
Also used : MeleeAttack(de.Keyle.MyPet.compat.v1_16_R3.entity.ai.attack.MeleeAttack)

Example 43 with MeleeAttack

use of de.Keyle.MyPet.compat.v1_18_R1.entity.ai.attack.MeleeAttack in project MyPet by xXKeyleXx.

the class EntityMyMagmaCube method setPathfinder.

@Override
public void setPathfinder() {
    super.setPathfinder();
    petPathfinderSelector.replaceGoal("MeleeAttack", new MeleeAttack(this, 0.1F, 3 + (getMyPet().getSize() * 0.51), 20));
}
Also used : MeleeAttack(de.Keyle.MyPet.compat.v1_16_R3.entity.ai.attack.MeleeAttack)

Example 44 with MeleeAttack

use of de.Keyle.MyPet.compat.v1_18_R1.entity.ai.attack.MeleeAttack in project MyPet by xXKeyleXx.

the class EntityMyMagmaCube method updateVisuals.

@Override
public void updateVisuals() {
    int size = Math.max(1, getMyPet().getSize());
    getEntityData().set(SIZE_WATCHER, size);
    this.refreshDimensions();
    if (petPathfinderSelector != null && petPathfinderSelector.hasGoal("MeleeAttack")) {
        petPathfinderSelector.replaceGoal("MeleeAttack", new MeleeAttack(this, 0.1F, 3 + (getMyPet().getSize() * 0.51), 20));
    }
}
Also used : MeleeAttack(de.Keyle.MyPet.compat.v1_17_R1.entity.ai.attack.MeleeAttack)

Example 45 with MeleeAttack

use of de.Keyle.MyPet.compat.v1_18_R1.entity.ai.attack.MeleeAttack in project MyPet by xXKeyleXx.

the class EntityMySlime method updateVisuals.

@Override
public void updateVisuals() {
    int size = Math.max(1, getMyPet().getSize());
    getEntityData().set(SIZE_WATCHER, size);
    this.refreshDimensions();
    if (petPathfinderSelector != null && petPathfinderSelector.hasGoal("MeleeAttack")) {
        petPathfinderSelector.replaceGoal("MeleeAttack", new MeleeAttack(this, 0.1F, 3 + (getMyPet().getSize() * 0.51), 20));
    }
}
Also used : MeleeAttack(de.Keyle.MyPet.compat.v1_17_R1.entity.ai.attack.MeleeAttack)

Aggregations

EntitySize (de.Keyle.MyPet.api.entity.EntitySize)18 MeleeAttack (de.Keyle.MyPet.compat.v1_16_R1.entity.ai.attack.MeleeAttack)8 MeleeAttack (de.Keyle.MyPet.compat.v1_16_R3.entity.ai.attack.MeleeAttack)8 MeleeAttack (de.Keyle.MyPet.compat.v1_10_R1.entity.ai.attack.MeleeAttack)7 MeleeAttack (de.Keyle.MyPet.compat.v1_11_R1.entity.ai.attack.MeleeAttack)7 MeleeAttack (de.Keyle.MyPet.compat.v1_12_R1.entity.ai.attack.MeleeAttack)7 MeleeAttack (de.Keyle.MyPet.compat.v1_17_R1.entity.ai.attack.MeleeAttack)7 MeleeAttack (de.Keyle.MyPet.compat.v1_18_R1.entity.ai.attack.MeleeAttack)7 MeleeAttack (de.Keyle.MyPet.compat.v1_7_R4.entity.ai.attack.MeleeAttack)7 MeleeAttack (de.Keyle.MyPet.compat.v1_8_R1.entity.ai.attack.MeleeAttack)7 MeleeAttack (de.Keyle.MyPet.compat.v1_8_R2.entity.ai.attack.MeleeAttack)7 MeleeAttack (de.Keyle.MyPet.compat.v1_8_R3.entity.ai.attack.MeleeAttack)7 MeleeAttack (de.Keyle.MyPet.compat.v1_9_R1.entity.ai.attack.MeleeAttack)7 MeleeAttack (de.Keyle.MyPet.compat.v1_9_R2.entity.ai.attack.MeleeAttack)7 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 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 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