Inheritance: extends stdClass
Ejemplo n.º 1
0
 public function writeTag(Tag $tag)
 {
     $this->putByte($tag->getType());
     if ($tag instanceof NamedTAG) {
         $this->putString($tag->getName());
     }
     $tag->write($this);
 }
Ejemplo n.º 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);
 }