22declare(strict_types=1);
24namespace pocketmine\entity\effect;
30use pocketmine\utils\NotCloneable;
31use pocketmine\utils\NotSerializable;
45 protected Color $color,
46 protected bool $bad =
false,
47 private int $defaultDuration = 600,
48 protected bool $hasBubbles =
true
77 return $this->defaultDuration;
84 return $this->hasBubbles;
__construct(protected Translatable|string $name, protected Color $color, protected bool $bad=false, private int $defaultDuration=600, protected bool $hasBubbles=true)
applyEffect(Living $entity, EffectInstance $instance, float $potency=1.0, ?Entity $source=null)
canTick(EffectInstance $instance)