fill in more iterable types (master)

This commit is contained in:
Dylan K. Taylor
2020-02-01 20:19:57 +00:00
parent 200209b76c
commit ff63f6d055
26 changed files with 121 additions and 3 deletions

View File

@@ -423,6 +423,9 @@ class World implements ChunkManager{
$this->closed = true;
}
/**
* @param Player[]|null $players
*/
public function addSound(Vector3 $pos, Sound $sound, ?array $players = null) : void{
$pk = $sound->encode($pos);
if(!is_array($pk)){
@@ -439,6 +442,9 @@ class World implements ChunkManager{
}
}
/**
* @param Player[]|null $players
*/
public function addParticle(Vector3 $pos, Particle $particle, ?array $players = null) : void{
$pk = $particle->encode($pos);
if(!is_array($pk)){