NLauncher.PluginSDK
0.2.0
dotnet add package NLauncher.PluginSDK --version 0.2.0
NuGet\Install-Package NLauncher.PluginSDK -Version 0.2.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="NLauncher.PluginSDK" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NLauncher.PluginSDK" Version="0.2.0" />
<PackageReference Include="NLauncher.PluginSDK" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NLauncher.PluginSDK --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NLauncher.PluginSDK, 0.2.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.
#:package NLauncher.PluginSDK@0.2.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NLauncher.PluginSDK&version=0.2.0
#tool nuget:?package=NLauncher.PluginSDK&version=0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NLauncher Plugin SDK
SDK for developing plugins for NLauncher, a Minecraft launcher.
Installation
dotnet add package NLauncher.PluginSDK
Quick Start
- Create a new Class Library project targeting .NET 8.0
- Add the NLauncher.PluginSDK package
- Implement
IPlugin:
using NLauncher.PluginSDK.Interfaces;
using NLauncher.PluginSDK.Models;
public class MyPlugin : IPlugin
{
private IPluginHost? _host;
public PluginInfo Info => new()
{
Id = "my-plugin",
Name = "My Plugin",
Description = "Does something cool",
Version = "1.0.0",
Author = "Your Name"
};
public PluginState State { get; private set; } = PluginState.Unloaded;
public Task LoadAsync(IPluginHost host)
{
_host = host;
_host.Logger.Info("My plugin loaded!");
// Register UI elements, subscribe to events, etc.
State = PluginState.Loaded;
return Task.CompletedTask;
}
public Task UnloadAsync()
{
State = PluginState.Unloaded;
return Task.CompletedTask;
}
public Task EnableAsync()
{
State = PluginState.Enabled;
return Task.CompletedTask;
}
public Task DisableAsync()
{
State = PluginState.Disabled;
return Task.CompletedTask;
}
public void Dispose() { }
}
- Create a
plugin.jsonmanifest:
{
"id": "my-plugin",
"name": "My Plugin",
"version": "1.0.0",
"description": "Does something cool",
"author": "Your Name",
"repository": "https://github.com/YourName/MyPlugin",
"minLauncherVersion": "0.2.0",
"entryPoint": "MyPlugin.dll",
"mainClass": "MyPlugin.MyPlugin"
}
Note: The
repositoryfield is required. All plugins must provide a public GitHub repository URL for security review.
Features
IPluginHost Services
Logger- Log messages to NLauncher's logEvents- Subscribe to launcher events (instance selected, game launched, etc.)InstanceService- Access Minecraft instancesDialogService- Show dialogs to usersFileSystem- Safe file operationsCurrentTheme- Access current UI theme colors
UI Registration
// Add a tab to instance panel
_host.RegisterInstanceTab(new TabRegistration
{
Id = "my-tab",
Title = "My Tab",
ViewFactory = () => new MyTabView(),
ViewModelFactory = () => new MyTabViewModel(_host)
});
// Add to main tabs
_host.RegisterMainTab(...);
// Add settings section
_host.RegisterSettingsSection(...);
Events
_host.Events.InstanceSelected.Subscribe(args => {
_host.Logger.Info($"Instance selected: {args.Instance.Name}");
});
_host.Events.GameLaunched.Subscribe(args => {
// Game started
});
_host.Events.ThemeChanged.Subscribe(args => {
// Update UI colors
});
Documentation
Full documentation: https://github.com/Nyfaria/NLauncher
License
MIT
| 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Avalonia (>= 11.3.2)
- System.Reactive (>= 6.0.1)
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 |
|---|---|---|
| 0.2.0 | 170 | 3/12/2026 |
Initial public release of NLauncher Plugin SDK