123456789101112131415161718192021222324252627 |
- package me.km.effects.active;
- import me.km.api.Utils;
- import me.km.effects.ActiveEffectBase;
- import me.km.effects.EffectUtils;
- import net.minecraft.entity.player.EntityPlayerMP;
- import net.minecraft.util.math.Vec3d;
- public class PushUp extends ActiveEffectBase
- {
- @Override
- protected boolean executeEffect(EntityPlayerMP p, int power)
- {
- Vec3d v = p.getPositionVector();
- EffectUtils.getEntsOfNotGuild(p, power + 2).stream().forEach(ent ->
- {
- Utils.addVelocity(ent, 0, 1, 0);
- });
- return true;
- }
-
- @Override
- protected int getManaCost(int manaFactor)
- {
- return 3 * manaFactor;
- }
- }
|