상속: extends stdClass
예제 #1
0
파일: NBT.php 프로젝트: ianju/PocketMine-MP
 public function writeTag(Tag $tag)
 {
     $this->putByte($tag->getType());
     if ($tag instanceof NamedTAG) {
         $this->putString($tag->getName());
     }
     $tag->write($this);
 }
예제 #2
0
 public function writeTag(Tag $tag, bool $network = false)
 {
     $this->putByte($tag->getType());
     if ($tag instanceof NamedTAG) {
         $this->putString($tag->getName(), $network);
     }
     $tag->write($this, $network);
 }