Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
AnnotationLib

AnnotationLib

The magic of annotations :)

4,581
1
Library
AnnotationLib has been archived. AnnotationLib will not receive any further updates unless the author decides to unarchive the project.
AboutChangelogVersions

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.

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.20.1
1.19.4
1.18.2
1.17.1

Platforms

Fabric

Supported environments

Client and server

Links

Report issues View source Join Discord server

Creators

IAFEnvoy
IAFEnvoy Inherited Owner

Details

Licensed LGPL-3.0-or-later
Published last year
Updated last year

Modrinth is open source.

main@9fd0f68

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.