PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
getFallDamagePerBlock () | |
getLandSound () | |
getMaxFallDamage () | |
onHitGround (FallingBlock $blockEntity) | |
tickFalling () | |
Definition at line 30 of file Fallable.php.
pocketmine\block\utils\Fallable::getFallDamagePerBlock | ( | ) |
Returns the damage caused per fallen block. This is multiplied by the fall distance (and capped according to Fallable::getMaxFallDamage()
) to calculate the damage dealt to any entities who intersect with the block when it hits the ground.
Implemented in pocketmine\block\Anvil.
pocketmine\block\utils\Fallable::getLandSound | ( | ) |
Returns the sound that will be played when FallingBlock hits the ground.
Implemented in pocketmine\block\Anvil.
pocketmine\block\utils\Fallable::getMaxFallDamage | ( | ) |
Returns the maximum damage the block can deal to an entity when it hits the ground.
Implemented in pocketmine\block\Anvil.
pocketmine\block\utils\Fallable::onHitGround | ( | FallingBlock | $blockEntity | ) |
Called when FallingBlock hits the ground. Returns whether the block should be placed.
Implemented in pocketmine\block\Anvil.
pocketmine\block\utils\Fallable::tickFalling | ( | ) |
Called every tick by FallingBlock to update the falling state of this block. Used by concrete to check when it hits water. Return null if you don't want to change the usual behaviour.
Implemented in pocketmine\block\ConcretePowder.