pocketmine\inventory\Inventory::close PHP Метод

close() публичный Метод

public close ( Player $who )
$who pocketmine\Player
    public function close(Player $who);

Usage Example

Пример #1
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]);
     }
 }