Skip to content

Get Minecraft Changelogs

AlphaBs edited this page Aug 28, 2021 · 6 revisions

Changelogs class

image

Get minecraft changelogs.

Sample code

See ChangeLog.cs in the CmlLibWinFormSample project.

Example

Changelogs changelogs = await Changelogs.GetChangelogs(); // get changelog informations
string[] versions = changelogs.GetAvailableVersions(); // get all available versions
string changelogHtml = await changelogs.GetChangelogHtml("1.16.5"); // get html of 1.16.5 changelog

Methods

static GetChangelogs()

Returns: Task<Changelogs>

Get changelog informations from mojang server.

GetAvailableVersions()

Returns: string[]

Returns Minecraft versions which have a changelog.

GetChangelogHtml(string version)

Returns: Task<string>

Returns the HTML code of the changelog of version.
The HTML code contains only the changelog; there is no header or footer. You can display this HTML with the WebBrowser element if you'd like.