47        $this->type = Byte::readUnsigned($in);
 
   48        for($i = 0, $count = VarInt::readUnsignedInt($in); $i < $count; ++$i){
 
   50            $entry->scoreboardId = VarInt::readSignedLong($in);
 
   51            if($this->type === self::TYPE_REGISTER_IDENTITY){
 
   52                $entry->actorUniqueId = CommonTypes::getActorUniqueId($in);
 
   55            $this->entries[] = $entry;
 
 
   60        Byte::writeUnsigned($out, $this->type);
 
   61        VarInt::writeUnsignedInt($out, count($this->entries));
 
   62        foreach($this->entries as $entry){
 
   63            VarInt::writeSignedLong($out, $entry->scoreboardId);
 
   64            if($this->type === self::TYPE_REGISTER_IDENTITY){
 
   65                CommonTypes::putActorUniqueId($out, $entry->actorUniqueId);