Definition at line 32 of file EffectManager.php.
◆ __construct()
pocketmine\entity\effect\EffectManager::__construct |
( |
private Living | $entity | ) |
|
◆ add()
◆ all()
pocketmine\entity\effect\EffectCollection::all |
( |
| ) |
|
|
inherited |
Returns all the effects in the collection, indexed by spl_object_id of the effect type.
- Returns
- EffectInstance[]
Definition at line 73 of file EffectCollection.php.
◆ canAdd()
pocketmine\entity\effect\EffectCollection::canAdd |
( |
EffectInstance | $effect | ) |
|
|
inherited |
◆ clear()
pocketmine\entity\effect\EffectCollection::clear |
( |
| ) |
|
|
inherited |
◆ get()
pocketmine\entity\effect\EffectCollection::get |
( |
Effect | $effect | ) |
|
|
inherited |
Returns the effect instance active with the specified ID, or null if does not have the effect.
Definition at line 107 of file EffectCollection.php.
◆ getBubbleColor()
pocketmine\entity\effect\EffectCollection::getBubbleColor |
( |
| ) |
|
|
inherited |
◆ getEffectAddHooks()
pocketmine\entity\effect\EffectCollection::getEffectAddHooks |
( |
| ) |
|
|
inherited |
- Returns
- \Closure[]|ObjectSet @phpstan-return ObjectSet<\Closure(EffectInstance, bool $replacesOldEffect) : void>
Definition at line 212 of file EffectCollection.php.
◆ getEffectRemoveHooks()
pocketmine\entity\effect\EffectCollection::getEffectRemoveHooks |
( |
| ) |
|
|
inherited |
- Returns
- \Closure[]|ObjectSet @phpstan-return ObjectSet<\Closure(EffectInstance) : void>
Definition at line 220 of file EffectCollection.php.
◆ has()
pocketmine\entity\effect\EffectCollection::has |
( |
Effect | $effect | ) |
|
|
inherited |
◆ hasOnlyAmbientEffects()
pocketmine\entity\effect\EffectCollection::hasOnlyAmbientEffects |
( |
| ) |
|
|
inherited |
◆ recalculateEffectColor()
pocketmine\entity\effect\EffectCollection::recalculateEffectColor |
( |
| ) |
|
|
protectedinherited |
Recalculates the potion bubbles colour based on the active effects.
Definition at line 173 of file EffectCollection.php.
◆ remove()
pocketmine\entity\effect\EffectManager::remove |
( |
Effect | $effectType | ) |
|
◆ setEffectFilterForBubbles()
pocketmine\entity\effect\EffectCollection::setEffectFilterForBubbles |
( |
\Closure | $filter | ) |
|
|
inherited |
Sets the filter that determines which effects will be displayed in the bubbles.
@phpstan-param \Closure(EffectInstance) : bool $filter
Definition at line 165 of file EffectCollection.php.
◆ tick()
pocketmine\entity\effect\EffectManager::tick |
( |
int | $tickDiff = 1 | ) |
|
◆ $bubbleColor
Color pocketmine\entity\effect\EffectCollection::$bubbleColor |
|
protectedinherited |
◆ $effectAddHooks
ObjectSet pocketmine\entity\effect\EffectCollection::$effectAddHooks |
|
protectedinherited |
◆ $effectFilterForBubbles
Closure pocketmine\entity\effect\EffectCollection::$effectFilterForBubbles |
|
protectedinherited |
Validates whether an effect will be used for bubbles color calculation.
@phpstan-var \Closure(EffectInstance) : bool
Definition at line 59 of file EffectCollection.php.
◆ $effectRemoveHooks
ObjectSet pocketmine\entity\effect\EffectCollection::$effectRemoveHooks |
|
protectedinherited |
◆ $effects
array pocketmine\entity\effect\EffectCollection::$effects = [] |
|
protectedinherited |
◆ $onlyAmbientEffects
bool pocketmine\entity\effect\EffectCollection::$onlyAmbientEffects = false |
|
protectedinherited |
The documentation for this class was generated from the following file: