PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
add (Living $entity, EffectInstance $instance) | |
applyEffect (Living $entity, EffectInstance $instance, float $potency=1.0, ?Entity $source=null) | |
canTick (EffectInstance $instance) | |
getColor () | |
getDefaultDuration () | |
getName () | |
hasBubbles () | |
isBad () | |
remove (Living $entity, EffectInstance $instance) | |
Definition at line 30 of file LevitationEffect.php.
pocketmine\entity\effect\LevitationEffect::add | ( | Living | $entity, |
EffectInstance | $instance ) |
Applies effects to the entity when the effect is first added.
Reimplemented from pocketmine\entity\effect\Effect.
Definition at line 42 of file LevitationEffect.php.
pocketmine\entity\effect\LevitationEffect::applyEffect | ( | Living | $entity, |
EffectInstance | $instance, | ||
float | $potency = 1.0, | ||
?Entity | $source = null ) |
Applies effect results to an entity. This will not be called unless canTick() returns true.
Reimplemented from pocketmine\entity\effect\Effect.
Definition at line 36 of file LevitationEffect.php.
References pocketmine\entity\Entity\addMotion(), and pocketmine\entity\effect\EffectInstance\getEffectLevel().
pocketmine\entity\effect\LevitationEffect::canTick | ( | EffectInstance | $instance | ) |
Returns whether the effect will do something on the current tick.
Reimplemented from pocketmine\entity\effect\Effect.
Definition at line 32 of file LevitationEffect.php.
|
inherited |
Returns a Color object representing this effect's particle colour.
Definition at line 61 of file Effect.php.
Referenced by pocketmine\entity\effect\EffectInstance\__construct().
|
inherited |
Returns the default duration (in ticks) this effect will apply for if a duration is not specified.
Definition at line 76 of file Effect.php.
Referenced by pocketmine\entity\effect\EffectInstance\__construct().
|
inherited |
Returns the translation key used to translate this effect's name.
Definition at line 54 of file Effect.php.
|
inherited |
Returns whether this effect will give the subject potion bubbles.
Definition at line 83 of file Effect.php.
|
inherited |
Returns whether this effect is harmful. TODO: implement inverse effect results for undead mobs
Definition at line 69 of file Effect.php.
pocketmine\entity\effect\LevitationEffect::remove | ( | Living | $entity, |
EffectInstance | $instance ) |
Removes the effect from the entity, resetting any changed values back to their original defaults.
Reimplemented from pocketmine\entity\effect\Effect.
Definition at line 46 of file LevitationEffect.php.