Skip to content

适用于 Minecraft 1.21.1, 1.21 的 YUNG's API 模组

YUNG 系列模组的库模组。

次下载
105 次下载
次浏览
323 次浏览
已更新
已更新 16.09.2026

关于 YUNG's API 模组

这是 YUNG 的模组所用的一个前置库模组。

致所有模组开发者——它提供了许多有用的东西,尤其是对于世界生成模组开发者来说!

该 API 包含以下内容:

  • 自动注册系统(仅限 1.18+)。只需一个简单的注解即可注册任意字段,无论使用哪种模组加载器!
  • 自定义重新实现的 Jigsaw Manager,具有更好的性能,以及带有各种新属性的自定义池元素类型。查看 Better Dungeons 的代码即可了解其实际应用。
  • 用于安全定位任意结构的新判据触发器。如果给定的结构不存在,该触发器会直接失败,而不是像原版那样立即通过。
  • 用于 JSON 序列化和反序列化的接口,并内置类型适配器。
  • 用于向量和列位置的简单、轻量级数学工具
  • BlockStateRandomizer 和 ItemRandomizer,这些数据抽象能让为你的结构添加方块和物品随机化变得极其简单。我所有的模组都使用了它们!

如果你好奇,可以查看我的模组代码(尤其是较新的那些)来了解其运作方式。欢迎在 Discord 上向我提出任何问题!

如何安装 YUNG's API

With Millida Launcher

  1. Install Millida Launcher

    The launcher is free: download it at millida.net/launcher and sign in with any nickname.

  2. 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.

  3. Launch the game

    A profile with it appears in the launcher: click “Play”.

Manually

  1. 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.

  2. 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.

  3. 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.

  4. Launch the loader profile

    Open “Mods” in the main menu: YUNG's API should be in the list.

On a server

  1. 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.

  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.

  3. 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.1NeoForge1.21.1404 KB 44
1.21.1Forge1.21.11 MB 5
1.21.1Fabric1.21.11.2 MB 35
26.1.2NeoForge26.1.2429 KB 2
26.1.2Fabric26.1.21.2 MB 18
1.21.1NeoForge1.21.1381 KB 1
1.21.1Forge1.21.1390 KB
1.21.1Fabric1.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 的人

评论 0

登录后即可评论登录

相似模组

全部模组

了解更多

作者: YUNGNICKYOUNG许可证: LGPL-3.0-only源代码

您是作者吗? 联系我们 —— 我们将在 48 小时内下架。