Skip to content

FallableTrait ​

trait · pocketmine\block\utils\FallableTrait · source

This trait handles falling behaviour for blocks that need them. TODO: convert this into a dynamic component

Methods ​

getFallDamagePerBlock() ​

php
public function getFallDamagePerBlock() : float

getLandSound() ​

php
public function getLandSound() : ?\pocketmine\world\sound\Sound

getMaxFallDamage() ​

php
public function getMaxFallDamage() : float

getPosition() protected ​

php
abstract protected function getPosition() : \pocketmine\world\Position

onHitGround() ​

php
public function onHitGround(\pocketmine\entity\object\FallingBlock $blockEntity) : bool

onNearbyBlockChange() ​

php
public function onNearbyBlockChange() : void

tickFalling() ​

php
public function tickFalling() : ?\pocketmine\block\Block

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.