EntityEffectAddEvent
Extends EntityEffectEvent
Called when an effect is added to an Entity.
Methods
__construct()
php
public function __construct(\pocketmine\entity\Entity $entity, \pocketmine\entity\effect\EffectInstance $effect, ?\pocketmine\entity\effect\EffectInstance $oldEffect = null)getOldEffect()
php
public function getOldEffect() : ?\pocketmine\entity\effect\EffectInstancehasOldEffect()
php
public function hasOldEffect() : boolwillModify()
php
public function willModify() : boolReturns whether the effect addition will replace an existing effect already applied to the entity.
