addItem() public method

public addItem ( $slots )
コード例 #1
0
 public function addItem(...$slots)
 {
     $result = parent::addItem(...$slots);
     if ($this->getHolder() instanceof Player) {
         if ($this->getHolder()->isSurvival()) {
             $this->sendContents($this->getHolder());
         }
     }
     return $result;
 }
コード例 #2
0
 public function addItem(...$slots)
 {
     $result = parent::addItem(...$slots);
     $this->sendContents($this->getHolder());
     return $result;
 }