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