Implemented GameVersionProvider for Minecraft

This commit is contained in:
Kir_Antipov 2023-03-28 04:59:10 +00:00
parent ca25a27ca8
commit 954ba8b8e8

View file

@ -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());