Skip to content

PoisonEffect ​

class · pocketmine\entity\effect\PoisonEffect · source

Extends Effect

Methods ​

__construct() ​

php
public function __construct(\pocketmine\lang\Translatable|string $name, \pocketmine\color\Color $color, bool $isBad = false, int $defaultDuration = 600, bool $hasBubbles = true, bool $fatal = false)

applyEffect() ​

php
public function applyEffect(\pocketmine\entity\Living $entity, \pocketmine\entity\effect\EffectInstance $instance, float $potency = 1.0, ?\pocketmine\entity\Entity $source = null) : void

getApplyInterval() ​

php
public function getApplyInterval(\pocketmine\entity\effect\EffectInstance $instance) : int

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