mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-22 00:11:02 -05:00
Implemented GameVersionProvider
for Minecraft
This commit is contained in:
parent
ca25a27ca8
commit
954ba8b8e8
1 changed files with 7 additions and 0 deletions
7
src/games/minecraft/minecraft-version-provider.ts
Normal file
7
src/games/minecraft/minecraft-version-provider.ts
Normal 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());
|
Loading…
Reference in a new issue