EntityEventBroadcaster
This class allows broadcasting entity events to many viewers on the server network.
Methods
onEmote()
php
public function onEmote(array $recipients, \pocketmine\entity\Human $from, string $emoteId) : voidonEntityEffectAdded()
php
public function onEntityEffectAdded(array $recipients, \pocketmine\entity\Living $entity, \pocketmine\entity\effect\EffectInstance $effect, bool $replacesOldEffect) : voidonEntityEffectRemoved()
php
public function onEntityEffectRemoved(array $recipients, \pocketmine\entity\Living $entity, \pocketmine\entity\effect\EffectInstance $effect) : voidonEntityRemoved()
php
public function onEntityRemoved(array $recipients, \pocketmine\entity\Entity $entity) : voidonMobArmorChange()
php
public function onMobArmorChange(array $recipients, \pocketmine\entity\Living $mob) : voidonMobMainHandItemChange()
php
public function onMobMainHandItemChange(array $recipients, \pocketmine\entity\Human $mob) : voidTODO: expand this to more than just humans
onMobOffHandItemChange()
php
public function onMobOffHandItemChange(array $recipients, \pocketmine\entity\Human $mob) : voidonPickUpItem()
php
public function onPickUpItem(array $recipients, \pocketmine\entity\Entity $collector, \pocketmine\entity\Entity $pickedUp) : voidsyncActorData()
php
public function syncActorData(array $recipients, \pocketmine\entity\Entity $entity, array $properties) : voidsyncAttributes()
php
public function syncAttributes(array $recipients, \pocketmine\entity\Living $entity, array $attributes) : void