mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 12:04:46 +00:00
fill in more iterable types (master)
This commit is contained in:
@@ -1695,6 +1695,9 @@ abstract class Entity{
|
||||
$this->server->broadcastPackets($players ?? $this->getViewers(), [ActorEventPacket::create($this->id, $eventId, $eventData ?? 0)]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Player[]|null $players
|
||||
*/
|
||||
public function broadcastAnimation(?array $players, int $animationId) : void{
|
||||
$this->server->broadcastPackets($players ?? $this->getViewers(), [AnimatePacket::create($this->id, $animationId)]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user