FluentLauncher.Core
1.1.3
Suggested Alternatives
Additional Details
这个包已过期 请尽快迁移到 Natsurainko.FluentCore
dotnet add package FluentLauncher.Core --version 1.1.3
NuGet\Install-Package FluentLauncher.Core -Version 1.1.3
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="FluentLauncher.Core" Version="1.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FluentLauncher.Core --version 1.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FluentLauncher.Core, 1.1.3"
#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 FluentLauncher.Core as a Cake Addin #addin nuget:?package=FluentLauncher.Core&version=1.1.3 // Install FluentLauncher.Core as a Cake Tool #tool nuget:?package=FluentLauncher.Core&version=1.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FluentCore
一个高效的模块化Minecraft启动器核心
简介
一个由C#编写的跨平台模块化Minecraft启动核心
- 支持跨平台 (Windows/Linux上的调试已通过)
- Minecraft游戏核心的查找
- Minecraft的参数生成、启动封装 (支持启动最近更新的Forge-1.17.1)
- 对Offline/Yggdrasil验证的支持
- 支持AuthlibInjector并搭配Yggdrasil验证器实现外置登录
- 支持多线程补全Assets、Libraries、游戏主Jar
- 支持Bmclapi下载源的调用
- 在此感谢bangbang93提供镜像站服务 如果您支持我们 可以 赞助Bmclapi
本项目依赖及运行环境:
您发现了我们项目中的bug? 对我们的项目中有不满意的地方? 或是您愿意加入我们,与我们一同开发? 联系: Xcube Studio 工作室 QQ群:597704076 / a-275@qq.com (作者本人邮箱)
启动核心的简单调用
初始化启动核心并启动游戏
首先添加引用
using FluentCore.Model.Auth;
using FluentCore.Model.Launch;
using FluentCore.Service.Component.Launch;
using FluentCore.Wrapper;
添加以下代码到方法中
var coreLocator = new CoreLocator(path);//初始化一个核心定位器,path:minecarft游戏目录
LaunchConfig launchConfig = new LaunchConfig//初始化一个游戏配置
{
MoreBehindArgs = string.Empty,//可选的,游戏额外参数,如 --demo
MoreFrontArgs = string.Empty,//可选的,JVM额外参数
JavaPath = javaPath,//javaw.exe可执行文件路径
MaximumMemory = 2048,//JVM最大内存
NativesFolder = nativesFolder,//可选的,设置natives所在目录
AuthDataModel = new AuthDataModel//验证信息
{
AccessToken = accessToken,//AccessToken令牌
UserName = userName,//游戏内名称
Uuid = guid//Guid类型,玩家uuid
}
};
var launcher = new MinecraftLauncher(coreLocator, launchConfig);//初始化启动器
launcher.Launch(id);//启动游戏,id:要启动的游戏的id
具体详细功能请转到wiki翻阅
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. 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. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- Newtonsoft.Json (>= 13.0.1)
- System.Threading.Tasks.Dataflow (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.