PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
pocketmine\block\utils\Fallable Interface Reference
+ Inheritance diagram for pocketmine\block\utils\Fallable:
+ Collaboration diagram for pocketmine\block\utils\Fallable:

Public Member Functions

 getFallDamagePerBlock ()
 
 getLandSound ()
 
 getMaxFallDamage ()
 
 onHitGround (FallingBlock $blockEntity)
 
 tickFalling ()
 

Detailed Description

Definition at line 30 of file Fallable.php.

Member Function Documentation

◆ getFallDamagePerBlock()

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.

◆ getLandSound()

pocketmine\block\utils\Fallable::getLandSound ( )

Returns the sound that will be played when FallingBlock hits the ground.

Implemented in pocketmine\block\Anvil.

◆ getMaxFallDamage()

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.

◆ onHitGround()

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.

◆ tickFalling()

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.


The documentation for this interface was generated from the following file: