69        string $platformChatId,
 
   85        $result->uuid = $uuid;
 
   86        $result->username = $username;
 
   87        $result->actorRuntimeId = $actorRuntimeId;
 
   88        $result->platformChatId = $platformChatId;
 
   89        $result->position = $position;
 
   90        $result->motion = $motion;
 
   91        $result->pitch = $pitch;
 
   93        $result->headYaw = $headYaw;
 
   94        $result->item = $item;
 
   95        $result->gameMode = $gameMode;
 
   96        $result->metadata = $metadata;
 
   97        $result->syncedProperties = $syncedProperties;
 
   98        $result->abilitiesPacket = $abilitiesPacket;
 
   99        $result->links = $links;
 
  100        $result->deviceId = $deviceId;
 
  101        $result->buildPlatform = $buildPlatform;
 
 
  107        $this->username = CommonTypes::getString($in);
 
  108        $this->actorRuntimeId = CommonTypes::getActorRuntimeId($in);
 
  109        $this->platformChatId = CommonTypes::getString($in);
 
  110        $this->position = CommonTypes::getVector3($in);
 
  111        $this->motion = CommonTypes::getVector3($in);
 
  112        $this->pitch = LE::readFloat($in);
 
  113        $this->yaw = LE::readFloat($in);
 
  114        $this->headYaw = LE::readFloat($in);
 
  115        $this->item = CommonTypes::getItemStackWrapper($in);
 
  116        $this->gameMode = VarInt::readSignedInt($in);
 
  117        $this->metadata = CommonTypes::getEntityMetadata($in);
 
  118        $this->syncedProperties = PropertySyncData::read($in);
 
  121        $this->abilitiesPacket->decodePayload($in);
 
  123        $linkCount = VarInt::readUnsignedInt($in);
 
  124        for($i = 0; $i < $linkCount; ++$i){
 
  125            $this->links[$i] = CommonTypes::getEntityLink($in);
 
  128        $this->deviceId = CommonTypes::getString($in);
 
  129        $this->buildPlatform = LE::readSignedInt($in);
 
 
  134        CommonTypes::putString($out, $this->username);
 
  135        CommonTypes::putActorRuntimeId($out, $this->actorRuntimeId);
 
  136        CommonTypes::putString($out, $this->platformChatId);
 
  137        CommonTypes::putVector3($out, $this->position);
 
  138        CommonTypes::putVector3Nullable($out, $this->motion);
 
  139        LE::writeFloat($out, $this->pitch);
 
  140        LE::writeFloat($out, $this->yaw);
 
  141        LE::writeFloat($out, $this->headYaw);
 
  142        CommonTypes::putItemStackWrapper($out, $this->item);
 
  143        VarInt::writeSignedInt($out, $this->gameMode);
 
  144        CommonTypes::putEntityMetadata($out, $this->metadata);
 
  145        $this->syncedProperties->write($out);
 
  147        $this->abilitiesPacket->encodePayload($out);
 
  149        VarInt::writeUnsignedInt($out, count($this->links));
 
  150        foreach($this->links as $link){
 
  151            CommonTypes::putEntityLink($out, $link);
 
  154        CommonTypes::putString($out, $this->deviceId);
 
  155        LE::writeSignedInt($out, $this->buildPlatform);