跳到正文

Oshi API

作者:LoongLy

Oshi API For Minecraft

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

LoongLy Software

Oshi API

OSHI is a free JNA-based (native) Operating System and Hardware Information library for Java. It does not require the installation of any additional native libraries and aims to provide a cross-platform implementation to retrieve system information, such as OS version, processes, memory and CPU usage, disks and partitions, devices, sensors, etc.
Oshi Github
And this project is oshi API For Minecraft!

Use this API in project

build.gradle

modImplementation 'com.github.oshi', name: 'oshi-core', version: '6.6.5'

Oshi API

OSHI是一个免费的基于JNA的Java操作系统和硬件信息库。它不需要安装任何额外的本机库,旨在提供跨平台实现来检索系统信息,如操作系统版本、进程、内存和CPU使用情况、磁盘和分区、设备、传感器等。
Oshi Github

在项目中使用本API

build.gradle

modImplementation 'com.github.oshi', name: 'oshi-core', version: '6.6.5'

常见问题

Oshi API 支持哪些 Minecraft 版本?

Oshi API 支持 Minecraft Java 版 1.16.3–1.16.5,共 3 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Oshi API 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分

LoongLy 的其他作品

查看全部 →