/** * @return \BukkitPE\entity\Human[] */ public function getViewers() { return $this->inventory->getViewers(); }
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]); } }