Implement FallingBlock missing sounds (#5348)

This commit is contained in:
IvanCraft623
2022-12-18 14:33:50 -05:00
committed by GitHub
parent 3d75094874
commit 1785cbb6b5
4 changed files with 26 additions and 2 deletions

View File

@ -25,6 +25,7 @@ namespace pocketmine\block\utils;
use pocketmine\block\Block;
use pocketmine\entity\object\FallingBlock;
use pocketmine\world\sound\Sound;
interface Fallable{
@ -40,4 +41,9 @@ interface Fallable{
* Returns whether the block should be placed.
*/
public function onHitGround(FallingBlock $blockEntity) : bool;
/**
* Returns the sound that will be played when FallingBlock hits the ground.
*/
public function getLandSound() : ?Sound;
}