@Override public void setFallDistance(float arg0) { base.setFallDistance(arg0); }
@Override public void setFallDistance(float distance) { e.setFallDistance(distance); }
public void setFallDistance(float arg0) { entity.setFallDistance(arg0); }
private void deflect(final Entity entity) { if (entity.getEntityId() == this.player.getEntityId()) { return; } double x, z, vx, vz, mag; double angle = 50; angle = Math.toRadians(angle); x = entity.getLocation().getX() - this.player.getLocation().getX(); z = entity.getLocation().getZ() - this.player.getLocation().getZ(); mag = Math.sqrt(x * x + z * z); vx = (x * Math.cos(angle) - z * Math.sin(angle)) / mag; vz = (x * Math.sin(angle) + z * Math.cos(angle)) / mag; final Vector vec = new Vector(vx, 0, vz).normalize().multiply(this.push); final Vector velocity = entity.getVelocity(); if (this.bPlayer.isAvatarState()) { velocity.setX(AvatarState.getValue(vec.getX())); velocity.setZ(AvatarState.getValue(vec.getZ())); } else { velocity.setX(vec.getX()); velocity.setZ(vec.getY()); } GeneralMethods.setVelocity(entity, velocity); entity.setFallDistance(0); if (entity instanceof LivingEntity) { final double damageDealt = this.getNightFactor(this.deflectDamage); DamageHandler.damageEntity(entity, damageDealt, this); AirAbility.breakBreathbendingHold(entity); } }
entity.setVelocity(this.vector); new TempPotionEffect((LivingEntity) entity, effect); entity.setFallDistance(0); if (entity instanceof Creature) { ((Creature) entity).setTarget(null); this.target.setFallDistance(0); if (this.target instanceof Creature) { ((Creature) this.target).setTarget(null);
velocity.multiply(timefactor); GeneralMethods.setVelocity(entity, velocity); entity.setFallDistance(0);
dir.setY(dir.getY() * this.verticalPush); entity.setVelocity(entity.getVelocity().clone().add(dir.clone().multiply(this.horizontalPush))); entity.setFallDistance(0);
final Vector force = GeneralMethods.getDirection(entity.getLocation(), this.currentLoc); entity.setVelocity(force.clone().normalize().multiply(this.speed)); entity.setFallDistance(0F);
GeneralMethods.setVelocity(entity, entity.getVelocity().clone().add(dir.clone().multiply(this.getNightFactor(this.pushFactor)))); entity.setFallDistance(0); if (entity.getFireTicks() > 0) { entity.getWorld().playEffect(entity.getLocation(), Effect.EXTINGUISH, 0);
entity.setFallDistance(0); if (entity.getEntityId() != this.player.getEntityId() && entity instanceof Player) { ProjectKorra.flightHandler.createInstance((Player) entity, this.player, 5000L, this.getName());