MCLauncherSharpLib 1.1.0
dotnet add package MCLauncherSharpLib --version 1.1.0
NuGet\Install-Package MCLauncherSharpLib -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MCLauncherSharpLib" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MCLauncherSharpLib --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MCLauncherSharpLib, 1.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MCLauncherSharpLib as a Cake Addin #addin nuget:?package=MCLauncherSharpLib&version=1.1.0 // Install MCLauncherSharpLib as a Cake Tool #tool nuget:?package=MCLauncherSharpLib&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MCLauncherSharpLib
Overview
MCLauncherSharpLib is a library for managing Minecraft profiles and settings.
Features
- Manage Minecraft profiles easily
- Licensed under Apache 2.0
Install
It can be installed using the NuGet package manager.
dotnet add package MCLauncherSharpLib
Usage
using MCLauncherSharpLib;
// Adding LauncherProfile
var launcher_profiles = ProfileManager.LoadLauncherProfiles();
string id = "test_id"
var addProfile = new Profile
{
Name = "SampleProfile",
Type = "custom",
LastVersionId = "1.21.1",
Icon = "Dirt"
};
launcher_profiles.Profiles.Add(id, addProfile)
ProfileManager.SaveLauncherProfiles(launcher_profiles)
// Launch MinecraftLauncher
LauncherController.LaunchMinecraft();
For detailed instructions, please refer to...
Models offered
1. Profile
Property List
PropertyName | Type | Description | Required | |
---|---|---|---|---|
Name |
string |
Arbitrary profile name | yes | |
LastUsed |
string? |
Date of last use | no | |
Type |
string |
profile type | yes | |
GameDir |
string? |
Full path to the game directory | no | |
JavaArgs |
string? |
Arguments for Java | no | |
LastVersionId |
string |
Version of Minecraft to use | yes | |
Created |
string? |
Creation date | no | |
Icon |
string? |
Profile icon in the Minecraft Launcher | yes | Resolution |
Resolution |
Resolution |
Screen resolution settings for the profile | no |
Usage
using MCLauncherSharpLib.Models
var profile = new Profile
{
Name = "SampleProfile",
Type = "custom",
LastVersionId = "1.21.1",
Icon = "Dirt"
};
2. Resolution
Property List
PropertyName | Type | Description | Required |
---|---|---|---|
Width |
int? |
Screen width | no |
Height |
int? |
Screen height | no |
Usage
using MCLauncherSharpLib.Models
var profile = new Profile
{
Name = "SampleProfile",
Type = "custom",
LastVersionId = "1.20.1",
Icon = "Dirt",
Resolution = new Resolution
{
Width = 800,
Height = 600
}
};
3. LauncherProfiles
Property List
PropertyName | Type | Description | Required |
---|---|---|---|
Profiles |
Dictionary<string, Profile> |
profile list | yes |
Settings |
Dictionary<string, JsonValue> |
Profile Settings | yes |
Version |
int |
Profile version | yes |
Prerequisites
- .NET 8.0
- Windows environment recommended
License
This project is licensed under the Apache License 2.0.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.