diff --git a/src/games/minecraft/minecraft-version-provider.ts b/src/games/minecraft/minecraft-version-provider.ts new file mode 100644 index 0000000..506e2f7 --- /dev/null +++ b/src/games/minecraft/minecraft-version-provider.ts @@ -0,0 +1,7 @@ +import { GameVersionProvider } from "@/games/game-version-provider"; +import { MojangApiClient } from "./mojang-api-client"; + +/** + * A {@link GameVersionProvider} implementation that uses the Mojang API client to fetch Minecraft versions. + */ +export const MINECRAFT_VERSION_PROVIDER: GameVersionProvider = MojangApiClient.prototype.getMinecraftVersions.bind(new MojangApiClient());