use of de.Keyle.MyPet.compat.v1_8_R1.entity.ai.attack.MeleeAttack in project MyPet by xXKeyleXx.
the class EntityMySlime method setPathfinder.
@Override
public void setPathfinder() {
super.setPathfinder();
petPathfinderSelector.replaceGoal("MeleeAttack", new MeleeAttack(this, 0.1F, 3 + (getMyPet().getSize() * 0.51), 20));
}
use of de.Keyle.MyPet.compat.v1_8_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));
}
}
use of de.Keyle.MyPet.compat.v1_8_R1.entity.ai.attack.MeleeAttack in project MyPet by xXKeyleXx.
the class EntityMyPhantom 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.2), 20));
}
}
use of de.Keyle.MyPet.compat.v1_8_R1.entity.ai.attack.MeleeAttack in project MyPet by xXKeyleXx.
the class EntityMySlime method setPathfinder.
@Override
public void setPathfinder() {
super.setPathfinder();
petPathfinderSelector.replaceGoal("MeleeAttack", new MeleeAttack(this, 0.1F, 3 + (getMyPet().getSize() * 0.51), 20));
}
use of de.Keyle.MyPet.compat.v1_8_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());
this.datawatcher.set(SIZE_WATCHER, size);
EntitySize es = EntityMyMagmaCube.class.getAnnotation(EntitySize.class);
if (es != null) {
this.setSize(es.width() * size, es.width() * size);
}
if (petPathfinderSelector != null && petPathfinderSelector.hasGoal("MeleeAttack")) {
petPathfinderSelector.replaceGoal("MeleeAttack", new MeleeAttack(this, 0.1F, 3 + (getMyPet().getSize() * 0.51), 20));
}
}
Aggregations