File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -627,12 +627,13 @@ public function getStatistics(): Statistics
627627 /**
628628 * Get the forge update data for a mod
629629 * @param string $idOrSlug
630+ * @param NeoForgeUpdate|null $neoForgeFilter
630631 * @return ForgeUpdates|InvalidInputError
631632 * @throws ApiException
632633 */
633- public function getForgeUpdates (string $ idOrSlug ): ForgeUpdates |InvalidInputError
634+ public function getForgeUpdates (string $ idOrSlug, ? NeoForgeUpdate $ neoForgeFilter = null ): ForgeUpdates |InvalidInputError
634635 {
635- return $ this ->misc ->forgeUpdates ($ idOrSlug );
636+ return $ this ->misc ->forgeUpdates ($ idOrSlug, $ neoForgeFilter ?->value );
636637 }
637638
638639 /**
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Aternos \ModrinthApi \Client ;
4+
5+ enum NeoForgeUpdate: string
6+ {
7+ /**
8+ * NeoForge-only versions
9+ */
10+ case ONLY = "only " ;
11+
12+ /**
13+ * both Forge and NeoForge versions
14+ */
15+ case INCLUDE = "include " ;
16+
17+ /**
18+ * Forge-only versions
19+ */
20+ case OMITTED = "omitted " ;
21+ }
You can’t perform that action at this time.
0 commit comments