54        for($i = 0, $len = VarInt::readUnsignedInt($in); $i < $len; ++$i){
 
   55            $stringId = CommonTypes::getString($in);
 
   56            $numericId = LE::readSignedShort($in);
 
   57            $isComponentBased = CommonTypes::getBool($in);
 
   58            $version = VarInt::readSignedInt($in);
 
   59            $nbt = CommonTypes::getNbtCompoundRoot($in);
 
 
   65        VarInt::writeUnsignedInt($out, count($this->entries));
 
   66        foreach($this->entries as $entry){
 
   67            CommonTypes::putString($out, $entry->getStringId());
 
   68            LE::writeSignedShort($out, $entry->getNumericId());
 
   69            CommonTypes::putBool($out, $entry->isComponentBased());
 
   70            VarInt::writeSignedInt($out, $entry->getVersion());
 
   71            $out->writeByteArray($entry->getComponentNbt()->getEncodedNbt());