Skip to content

Commit

Permalink
Add NeoForge to ModLoaderType
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Feb 12, 2024
1 parent 68dabf6 commit ae11d7c
Show file tree
Hide file tree
Showing 81 changed files with 92 additions and 86 deletions.
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
invokerPackage: Aternos\CurseForgeApi
artifactVersion: 1.2.0
artifactVersion: 1.2.1
generatorName: php
outputDir: .
sourceFolder: src
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/CategoriesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/FilesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/FingerprintsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/GamesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/MinecraftApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/ModsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
1 change: 1 addition & 0 deletions lib/Client/Options/ModSearch/ModLoaderType.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ enum ModLoaderType: int
case LITE_LOADER = 3;
case FABRIC = 4;
case QUILT = 5;
case NEOFORGE = 6;
}
12 changes: 6 additions & 6 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down Expand Up @@ -100,7 +100,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/1.2.0/PHP';
protected $userAgent = 'OpenAPI-Generator/1.2.1/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -433,7 +433,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: 1.0.0' . PHP_EOL;
$report .= ' SDK Package Version: 1.2.0' . PHP_EOL;
$report .= ' SDK Package Version: 1.2.1' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down Expand Up @@ -494,11 +494,11 @@ public static function getHostString(array $hostSettings, $hostIndex, array $var
}

// check array index out of bound
if ($hostIndex < 0 || $hostIndex >= count($hostsSettings)) {
throw new \InvalidArgumentException("Invalid index $hostIndex when selecting the host. Must be less than ".count($hostsSettings));
if ($hostIndex < 0 || $hostIndex >= count($hostSettings)) {
throw new \InvalidArgumentException("Invalid index $hostIndex when selecting the host. Must be less than ".count($hostSettings));
}

$host = $hostsSettings[$hostIndex];
$host = $hostSettings[$hostIndex];
$url = $host["url"];

// go through variable and assign a value
Expand Down
2 changes: 1 addition & 1 deletion lib/HeaderSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ApiResponseOfListOfMinecraftGameVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ApiResponseOfListOfMinecraftModLoaderIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ApiResponseOfMinecraftGameVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ApiResponseOfMinecraftModLoaderVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/CoreApiStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/CoreStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FeaturedModsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FileDependency.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FileHash.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FileIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FileModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FileRelationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FileReleaseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FileStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FingerprintFuzzyMatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FingerprintFuzzyMatchResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FingerprintMatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FingerprintMatchesResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FolderFingerprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/Game.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/GameAssets.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/GameVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/GameVersionStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/GameVersionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/GameVersionTypeStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/GameVersionsByType.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/GameVersionsByTypeV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/GetCategoriesResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
* OpenAPI Generator version: 7.3.0
*/

/**
Expand Down
Loading

0 comments on commit ae11d7c

Please sign in to comment.