Skip to content

SlowFallingEffect 5.46.0 ​

class · pocketmine\entity\effect\SlowFallingEffect · source

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.01

Methods ​

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.