跳到正文

GeezAPI

作者:_eeast

API that all of my mods are using

收藏

介绍

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

🌻 GeezAPI

The core library powering all Sunflower mods.

GeezAPI is a lightweight, shared code library for my mods and modpacks. It does nothing on its own, but is required for mods like Sunflower’s QoL to work.

Designed for performance, compatibility and easy development on Fabric & NeoForge.


📦 Loader Support

Available for Fabric Available for NeoForge Requires Architectury API


🔧 What’s Inside?

GeezAPI is not a content mod. It’s a toolbox for developers and modpack makers.

1. GeezEvents
A unified event system wrapping Architectury API. Clean hooks you can use in any of your mods:

  • CROP_HARVESTED
  • TREE_FELLED
  • SPAWNER_COLLECTED

2. GeezTags
Centralized custom tags for all my mods:

  • geezapi:timber_logs
  • geezapi:harvestable_crops

3. GeezConfigHelper
Simple wrapper for Cloth Config. Create configs for your own mods in 3 lines.

4. Version & Utils

  • GeezAPI.VERSION – always know which library version is loaded
  • Helpers for XP, enchantments, block breaking

👨‍💻 For Developers

Add GeezAPI to your project as a dependency:

Fabric – build.gradle
modImplementation “com.sunflower:geezapi-common-1.0.0”

NeoForge – build.gradle
implementation fg.deobf(“com.sunflower:geezapi-common-1.0.0”)

Then in code:
import com.sunflower.enhancedvanilla.api.GeezAPI;
GeezEvents.CROP_HARVESTED.register((player, pos, stack) -> {
// Your logic here
});


📋 Requirements

[Requires Architectury API](https://modrinth.com/mod/architectury-api) [Requires Cloth Config](https://modrinth.com/mod/cloth-config)

  • Minecraft 1.21.11
  • Fabric / NeoForge
  • Architectury API
  • Cloth Config

❓ FAQ

Q: Does GeezAPI do anything alone?
A: No. It’s a library. Install it because another mod requires it.

Q: Can I use it in my modpack?
A: Yes! It’s made for modpacks. No permission needed, just include it.

Q: Is it server-safe?
A: Yes, fully client & server sided.


Built for Sunflower’s Enhanced Vanilla and all future Sunflower projects. 🌻

常见问题

GeezAPI 支持哪些 Minecraft 版本?

GeezAPI 支持 Minecraft Java 版 1.20–26.1.2,共 13 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

GeezAPI 怎么安装?

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

评论

登录后评论和评分

_eeast 的其他作品

查看全部 →