SlowFallingEffect 5.46.0
Extends Effect
Slow Falling (vanilla): falling entities only accelerate by 0.01 blocks/tick² instead of their normal gravity, and take no fall damage. Players move themselves on the client, so only their fall damage is handled here.
Constants
SLOW_GRAVITY
php
public const SLOW_GRAVITY = 0.01Methods
applyEffect()
php
public function applyEffect(\pocketmine\entity\Living $entity, \pocketmine\entity\effect\EffectInstance $instance, float $potency = 1.0, ?\pocketmine\entity\Entity $source = null) : voidgetApplyInterval()
php
public function getApplyInterval(\pocketmine\entity\effect\EffectInstance $instance) : int