Skip to content

EntityDamageByBlockEvent ​

class · pocketmine\event\entity\EntityDamageByBlockEvent · source

Extends EntityDamageEvent

Called when an entity takes damage from a block.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\block\Block $damager, \pocketmine\entity\Entity $entity, int $cause, float $damage, array $modifiers = [])

getDamager() ​

php
public function getDamager() : \pocketmine\block\Block

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.