/**
  * @return \BukkitPE\entity\Human[]
  */
 public function getViewers()
 {
     return $this->inventory->getViewers();
 }
Exemple #2
0
 public function removeWindow(Inventory $inventory)
 {
     $inventory->close($this);
     if ($this->windows->contains($inventory)) {
         $id = $this->windows[$inventory];
         $this->windows->detach($this->windowIndex[$id]);
         unset($this->windowIndex[$id]);
     }
 }