pocketmine\entity\Projectile::attack PHP Method

attack() public method

public attack ( $damage, EntityDamageEvent $source )
$source pocketmine\event\entity\EntityDamageEvent
    public function attack($damage, EntityDamageEvent $source)
    {
        if ($source->getCause() === EntityDamageEvent::CAUSE_VOID) {
            parent::attack($damage, $source);
        }
    }