Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_znCgKxCZ.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
Armory API - 墨喵 Minecraft 资源
Armory API 图标

Armory API

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 3.0.0-mc1.21.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/armory-api
资源信息

Minecraft 版本: 1.21.1

平台: fabric

标签: library

资源介绍

Armory API

Armory API is a lightweight library that provides shared code for defining and managing tool sets and armor sets in Minecraft mods.

The project was extracted from XunLib to support Forge independently and keep the API lightweight, modular, and loader-agnostic.

Supported loaders:

  • Forge
  • NeoForge
  • Fabric

Features

  • APIs for defining ToolSet and ArmorSet
  • Reduced duplication when registering tools and armor
  • Loader-independent implementation
  • Small scope and minimal dependencies
  • Compatibility with modded tool types

FAQs

Can I use only ToolSet or only ArmorSet?
Yes. The systems are independent and can be used separately.

Does this handle item registration automatically?
No. Registration is handled by the consuming mod or loader-specific implementation.

Can I create custom tool or armor behaviors with this?
Yes. Armory API includes helper APIs for implementing custom tool and armor behavior, allowing mods to extend or customize functionality beyond vanilla behavior.

Can I add custom or modded tool types?
Yes. ToolPieceType is specifically designed to allow custom tool categories with their own item factories, statistics, properties, and attributes.

Can a ToolSet contain only some tool types?
Yes. A ToolSet is no longer limited to the standard vanilla tool collection. Any combination of supported ToolPieceType instances can be included.

Can other libraries or frameworks integrate with Armory API?
Yes. The API is designed to stay lightweight and modular so it can be integrated into larger modding frameworks if needed.

Dependency

Armory API is a library mod and is only required by mods that explicitly depend on it.

Armory API does not replace the loader's item registration system and does not require consuming mods to use a particular registration framework.


Note: The mod ID is armories to avoid conflicts with other mods using similar names.

下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Tinker's Woodworks

价格:0 墨喵币
下载量:0

查看详情
Splendid Spideys

价格:0 墨喵币
下载量:0

查看详情
camperify rp

价格:0 墨喵币
下载量:0

查看详情
Sable Entity Damage

价格:0 墨喵币
下载量:0

查看详情