关于 YUNG's API 模组
这是 YUNG 的模组所用的一个前置库模组。
致所有模组开发者——它提供了许多有用的东西,尤其是对于世界生成模组开发者来说!
该 API 包含以下内容:
- 自动注册系统(仅限 1.18+)。只需一个简单的注解即可注册任意字段,无论使用哪种模组加载器!
- 自定义重新实现的 Jigsaw Manager,具有更好的性能,以及带有各种新属性的自定义池元素类型。查看 Better Dungeons 的代码即可了解其实际应用。
- 用于安全定位任意结构的新判据触发器。如果给定的结构不存在,该触发器会直接失败,而不是像原版那样立即通过。
- 用于 JSON 序列化和反序列化的接口,并内置类型适配器。
- 用于向量和列位置的简单、轻量级数学工具
- BlockStateRandomizer 和 ItemRandomizer,这些数据抽象能让为你的结构添加方块和物品随机化变得极其简单。我所有的模组都使用了它们!
如果你好奇,可以查看我的模组代码(尤其是较新的那些)来了解其运作方式。欢迎在 Discord 上向我提出任何问题!
如何安装 YUNG's API
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.21–26.1.2 on Fabric, Forge or NeoForge automatically, together with its dependencies: Fabric API.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric, Forge or NeoForge
The loader must match the game version of the mod file, for example Minecraft 26.1.2. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file YungsApi-26.1.2-NeoForge-6.1.3.jar (429 KB) for your game version and loader.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it. Required dependencies go there too: Fabric API.
Launch the loader profile
Open “Mods” in the main menu: YUNG's API should be in the list.
On a server
A server on Fabric, Forge or NeoForge
The mod only works on a server with the same loader and game version, for example 26.1.2.
File goes into the server’s mods folder
Stop the server, put the mod file into the mods folder and start the server again.
Use the “To server” button
On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.
版本
含依赖项
| Minecraft | 加载器 | 文件 | 日期 | 操作 |
|---|---|---|---|---|
| 1.21.1 | NeoForge | 1.21.1404 KB 45 | ||
| 1.21.1 | Forge | 1.21.11 MB 5 | ||
| 1.21.1 | Fabric | 1.21.11.2 MB 36 | ||
| 26.1.2 | NeoForge | 26.1.2429 KB 2 | ||
| 26.1.2 | Fabric | 26.1.21.2 MB 18 | ||
| 1.21.1 | NeoForge | 1.21.1381 KB 1 | ||
| 1.21.1 | Forge | 1.21.1390 KB | ||
| 1.21.1 | Fabric | 1.21.11.2 MB |
运行所需
需要它的内容
常见问题
Which Minecraft versions does YUNG's API work on?
There are files for 26.1.2, 26.1.1, 1.21.1, 1.21. The newest is 26.1.2.
Is YUNG's API for Forge or Fabric?
There are files for Fabric: 1.21–26.1.2, for Forge: 1.21–1.21.1 and for NeoForge: 1.21–26.1.2.
What does YUNG's API need to work?
Required: Fabric API. Without it the mod will not start: dependencies go into the same mods folder.
Does YUNG's API work on a server?
Yes. YUNG's API works both in singleplayer and on a server.
Where can I download YUNG's API safely?
On this page: the file YungsApi-26.1.2-NeoForge-6.1.3.jar (429 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: cdbb07baa0e99178d95a85e23ad1d443c2230808.
评价
成为第一个评价 YUNG's API 的人


