mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Implement FallingBlock missing sounds (#5348)
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user