コード例 #1
0
ファイル: Furnace.php プロジェクト: gitter-badger/BukkitPE
 public function close()
 {
     if ($this->closed === false) {
         foreach ($this->getInventory()->getViewers() as $player) {
             $player->removeWindow($this->getInventory());
         }
         parent::close();
     }
 }
コード例 #2
0
ファイル: FlowerPot.php プロジェクト: MunkySkunk/BukkitPE
 public function __construct(FullChunk $chunk, Compound $nbt)
 {
     if (!isset($nbt->item)) {
         $nbt->item = new Short("item", 0);
     }
     if (!isset($nbt->data)) {
         $nbt->data = new Int("data", 0);
     }
     parent::__construct($chunk, $nbt);
 }
コード例 #3
0
ファイル: Sign.php プロジェクト: gitter-badger/BukkitPE
 public function saveNBT()
 {
     parent::saveNBT();
     unset($this->namedtag->Creator);
 }