Minecraft.NET

Minecraft Client Documentation

Introduction

This documentation provides an overview of the Minecraft Client library and its usage for managing Minecraft instances and starting the Minecraft client.

Prerequisites

Before using the Minecraft Client library, ensure you have the following:

  • .NET Core or .NET 5.0 installed.

  • A Microsoft Azure Client ID and Name for user authentication.

Make sure to create an App Registration from the Azure Portal and set the redirect url to http://127.0.0.1:56748

Installation

The Minecraft Client library can be installed using NuGet. Open your project in Visual Studio or any other compatible IDE and run the following command in the Package Manager Console:

Usage

Creating an Instance Manager

First, create an instance manager to handle all instances for a specified directory:

Creating a Minecraft Instance

To create a Minecraft instance, follow these steps:

Retrieving Instances

To retrieve instances, you can use the following methods:

Minecraft Versions

List Minecraft Versions

Sets the Instance Minecraft Version

Creating a Minecraft Client

To create a Minecraft client using an instance:

Starting the Minecraft Client

To start the Minecraft client and handle its output:

Last updated

Was this helpful?