Community listing page, reviews may not be monitored by the author.
Steven's API
No reviews yet
A personal NeoForge prerequisite API library for sharing common code (such as creative tabs, utility classes, etc.) across my other mods.
Community voices
Reviews
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
Steven's API(English)
A personal NeoForge API library that shares common code — such as creative tabs and utility classes — across my other mods.
📦 Features
- Creative Tab Contribution Sub-mods can register their items into this API's creative tab
steven_tab:
ApiTabContributors.register(() -> List.of(
new ItemStack(MyItems.MY_ITEM.get())
));
🔧 Adding as a Dependency
Option 1: Source Subproject
settings.gradle:
include ':steven_mod_api'
project(':steven_mod_api').projectDir = file('../Steven_Mod_API')
build.gradle:
dependencies {
implementation project(':steven_mod_api')
}
Option 2: Local JAR
Place the built JAR into libs/, then:
implementation 'blank:steven_mod_api:1.0.0'
neoforge.mods.toml:
[[dependencies.your_mod_id]]
modId = "steven_mod_api"
type = "required"
versionRange = "[1.0.0,)"
ordering = "AFTER"
side = "BOTH"
🧩 Public API
ApiTabContributors.register(Supplier<List<ItemStack>>)— Register items to be shown in the API's creative tabApiTabContributors.collectAll()— Collect all contributed items (internal use)
⚠️ Requirements
- Minecraft: 1.21.1
- NeoForge: 21.1.188+
- Java: 21
📜 License
- Assets and Code: MIT License
🙏 Authors
- Programmer: Steven23334
Steven's API(中文)
一个个人向的 NeoForge 前置 API 库,用于在我的其他模组之间共享公共代码(如物品标签页、工具类等)。
📦 功能
- 物品标签页贡献 子模组可以把物品注册进本 API 的创造模式标签页
steven_tab:
ApiTabContributors.register(() -> List.of(
new ItemStack(MyItems.MY_ITEM.get())
));
🔧 作为前置引入
方式一:源码子项目
settings.gradle:
include ':steven_mod_api'
project(':steven_mod_api').projectDir = file('../Steven_Mod_API')
build.gradle:
dependencies {
implementation project(':steven_mod_api')
}
方式二:本地 JAR
把构建出的 JAR 放入 libs/,然后:
implementation 'blank:steven_mod_api:1.0.0'
neoforge.mods.toml:
[[dependencies.your_mod_id]]
modId = "steven_mod_api"
type = "required"
versionRange = "[1.0.0,)"
ordering = "AFTER"
side = "BOTH"
🧩 公开 API
ApiTabContributors.register(Supplier<List<ItemStack>>)— 注册要显示在 API 标签页里的物品ApiTabContributors.collectAll()— 收集所有贡献物品(内部使用)
⚠️ 前置要求
- Minecraft:1.21.1
- NeoForge:21.1.188+
- Java:21
📜 许可证
- 资产与代码:MIT License
🙏 作者
- 程序:Steven23334
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Get it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources