Skip to content

DamageAwareEffect 5.47.0 ​

interface · pocketmine\entity\effect\DamageAwareEffect · source

An effect that acts when the entity that has it takes damage (Infested). Checked only when damage was dealt, for the entity's active effects.

Methods ​

onEntityDamaged() ​

php
public function onEntityDamaged(\pocketmine\entity\Living $entity, \pocketmine\entity\effect\EffectInstance $instance, \pocketmine\event\entity\EntityDamageEvent $source) : void

Called after the entity with this effect took damage and survived it.

VanillaMine is a fork of PocketMine-MP. Not affiliated with the PMMP team or Mojang.