AnnotationLib 图标

AnnotationLib

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/annotationlib
资源信息

Minecraft 版本: 1.17.1

平台: fabric

标签: library

资源介绍

Annotation Lib

The magic of annotations :)

This is a library to provide some operations powered by annotations.

Currently supported: Registration, Network Handler, Command System, Config System

NOTE: 1.20.1+ is the primary develop version. 1.17.1-1.19.2 only update with big change. 1.16.5- will not supported.

Maven?

See wiki for installation

How to use?

Common

For every registration class, add a entrypoint into fabric.mod.json

{
  "entrypoints": {
    "annotation_lib": [
      "your class here"
    ],
    "annotation_lib_client": [
      "your client only class here"
    ],
    "annotation_lib_server": [
      "your server only class here"
    ]
  }
}

Or you can use AnnotationApi.register(YourClass.class);.

Registration

You need to implement IAnnotatedRegistryEntry.

Example Code

Network Handler

You need to implement IAnnotatedNetworkEntry.

Example Code

Command System

You need to implement IAnnotatedNetworkEntry.

Example Code

Config System

More recommended to use Cloth Config, this is just a simple one.

You need to implement IAnnotatedConfigEntry.

下载与版本
1.0 最新
2026-09-18  | 1.17.1  | fabric
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
DiscordLogger

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

查看详情
Asphalt Revisioned

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

查看详情
SCP-027, The Vermin God

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

查看详情
Extreme Horde Moon

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

查看详情