PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
onEmote (array $recipients, Human $from, string $emoteId) | |
onEntityEffectAdded (array $recipients, Living $entity, EffectInstance $effect, bool $replacesOldEffect) | |
onEntityEffectRemoved (array $recipients, Living $entity, EffectInstance $effect) | |
onEntityRemoved (array $recipients, Entity $entity) | |
onMobArmorChange (array $recipients, Living $mob) | |
onMobMainHandItemChange (array $recipients, Human $mob) | |
onMobOffHandItemChange (array $recipients, Human $mob) | |
onPickUpItem (array $recipients, Entity $collector, Entity $pickedUp) | |
syncActorData (array $recipients, Entity $entity, array $properties) | |
syncAttributes (array $recipients, Living $entity, array $attributes) | |
This class allows broadcasting entity events to many viewers on the server network.
Definition at line 36 of file EntityEventBroadcaster.php.
pocketmine\network\mcpe\EntityEventBroadcaster::onEmote | ( | array | $recipients, |
Human | $from, | ||
string | $emoteId ) |
NetworkSession[] | $recipients |
Implemented in pocketmine\network\mcpe\StandardEntityEventBroadcaster.
pocketmine\network\mcpe\EntityEventBroadcaster::onEntityEffectAdded | ( | array | $recipients, |
Living | $entity, | ||
EffectInstance | $effect, | ||
bool | $replacesOldEffect ) |
NetworkSession[] | $recipients |
Implemented in pocketmine\network\mcpe\StandardEntityEventBroadcaster.
pocketmine\network\mcpe\EntityEventBroadcaster::onEntityEffectRemoved | ( | array | $recipients, |
Living | $entity, | ||
EffectInstance | $effect ) |
NetworkSession[] | $recipients |
Implemented in pocketmine\network\mcpe\StandardEntityEventBroadcaster.
pocketmine\network\mcpe\EntityEventBroadcaster::onEntityRemoved | ( | array | $recipients, |
Entity | $entity ) |
NetworkSession[] | $recipients |
Implemented in pocketmine\network\mcpe\StandardEntityEventBroadcaster.
pocketmine\network\mcpe\EntityEventBroadcaster::onMobArmorChange | ( | array | $recipients, |
Living | $mob ) |
NetworkSession[] | $recipients |
Implemented in pocketmine\network\mcpe\StandardEntityEventBroadcaster.
pocketmine\network\mcpe\EntityEventBroadcaster::onMobMainHandItemChange | ( | array | $recipients, |
Human | $mob ) |
TODO: expand this to more than just humans
NetworkSession[] | $recipients |
Implemented in pocketmine\network\mcpe\StandardEntityEventBroadcaster.
pocketmine\network\mcpe\EntityEventBroadcaster::onMobOffHandItemChange | ( | array | $recipients, |
Human | $mob ) |
NetworkSession[] | $recipients |
Implemented in pocketmine\network\mcpe\StandardEntityEventBroadcaster.
pocketmine\network\mcpe\EntityEventBroadcaster::onPickUpItem | ( | array | $recipients, |
Entity | $collector, | ||
Entity | $pickedUp ) |
NetworkSession[] | $recipients |
Implemented in pocketmine\network\mcpe\StandardEntityEventBroadcaster.
pocketmine\network\mcpe\EntityEventBroadcaster::syncActorData | ( | array | $recipients, |
Entity | $entity, | ||
array | $properties ) |
NetworkSession[] | $recipients | |
MetadataProperty[] | $properties |
@phpstan-param array<int, MetadataProperty> $properties
Implemented in pocketmine\network\mcpe\StandardEntityEventBroadcaster.
pocketmine\network\mcpe\EntityEventBroadcaster::syncAttributes | ( | array | $recipients, |
Living | $entity, | ||
array | $attributes ) |
NetworkSession[] | $recipients | |
Attribute[] | $attributes |
Implemented in pocketmine\network\mcpe\StandardEntityEventBroadcaster.