pocketmine\inventory\Inventory::close PHP Method

close() public method

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

Usage Example

Esempio n. 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]);
     }
 }