Aneveno.MojangWebClient
1.0.0
Aneveno.Gaming.Minecraft.Mojang.WebClient
Additional DetailsPackage changed namespace
dotnet add package Aneveno.MojangWebClient --version 1.0.0
NuGet\Install-Package Aneveno.MojangWebClient -Version 1.0.0
<PackageReference Include="Aneveno.MojangWebClient" Version="1.0.0" />
paket add Aneveno.MojangWebClient --version 1.0.0
#r "nuget: Aneveno.MojangWebClient, 1.0.0"
// Install Aneveno.MojangWebClient as a Cake Addin #addin nuget:?package=Aneveno.MojangWebClient&version=1.0.0 // Install Aneveno.MojangWebClient as a Cake Tool #tool nuget:?package=Aneveno.MojangWebClient&version=1.0.0
Mojang WebClient
Mojang WebClient is a C# wrapper for the Mojang's Minecraft Manifest.
Installation
You can use the library with nuget. Simply search for it in Visual Studio "Aneveno.MojangWebClient" or install in with CLI MS> Install-Package Aneveno.MojangWebClient
Usage
MojangWebClient is the class you would want to use for accessing anything related to the minecraft manifest. It contains methods on getting the manifest, requesting more specific information on the manifest's response etc.
Example
MojangWebClient mojang = new MojangWebClient();
MojangManifest manifest = await mojang.GetManifestAsync();
foreach (MojangVersion version in manifest.Versions)
{
MojangVersionDetails versionDetails = await mojang.GetVersionDetails(version.Url);
//Parse more version details...
//Download the server jar from:
string? serverUrl = versionDetails.Downloads.Server.Url;
DateTimeOffset? releasedTime = versionDetails.ReleaseTime;
}
The function GetVersionDetails() does nothing more than performing a GET HTTP request and deserializing the content. You get the idea, basically a WebClient for the manifest information from mojang's servers.
Dependencies
Newtonsoft's JSON for deserialization.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
1.0.0 | 256 | 7/17/2023 |