mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Implement anvil damage on fall (#5345)
This commit is contained in:
@ -24,6 +24,7 @@ declare(strict_types=1);
|
||||
namespace pocketmine\block\utils;
|
||||
|
||||
use pocketmine\block\Block;
|
||||
use pocketmine\entity\object\FallingBlock;
|
||||
|
||||
interface Fallable{
|
||||
|
||||
@ -33,4 +34,10 @@ interface Fallable{
|
||||
* Return null if you don't want to change the usual behaviour.
|
||||
*/
|
||||
public function tickFalling() : ?Block;
|
||||
|
||||
/**
|
||||
* Called when FallingBlock hits the ground.
|
||||
* Returns whether the block should be placed.
|
||||
*/
|
||||
public function onHitGround(FallingBlock $blockEntity) : bool;
|
||||
}
|
||||
|
Reference in New Issue
Block a user