From 954ba8b8e8b0abd29374a7f3dac4e1abc0a2d22c Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Tue, 28 Mar 2023 04:59:10 +0000 Subject: [PATCH] Implemented `GameVersionProvider` for Minecraft --- src/games/minecraft/minecraft-version-provider.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/games/minecraft/minecraft-version-provider.ts 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());