Skip to content

EffectManager ​

class · pocketmine\entity\effect\EffectManager · source

Extends EffectCollection

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Living $entity)

add() ​

php
public function add(\pocketmine\entity\effect\EffectInstance $effect) : bool

remove() ​

php
public function remove(\pocketmine\entity\effect\Effect $effectType) : void

Removes the effect with the specified ID from the mob.

tick() ​

php
public function tick(int $tickDiff = 1) : bool

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.