ProjectileAim 5.46.0
Aiming of thrown projectiles (snowballs of snow golems, llama spit): like Java's throwers, aims at a third of the target's height plus 20% of the horizontal distance upwards to make up for gravity.
Methods
aim()
php
public static function aim(\pocketmine\entity\Mob $shooter, \pocketmine\entity\Living $target, float $speed, float $inaccuracy) : ?arrayReturns the spawn location (at the mob's eyes, facing the shot) and the motion of a projectile shot at the target, or null if the target is at the mob's eyes.
