Back to mods
AnnotationLib project artwork

CurseForge · Minecraft mod

AnnotationLib

The Magic Of Annotations :)

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which AnnotationLib release should I use?

Updated 2 years ago
Latest stable file annotationlib-1.0-1.20.1.jar
Game version 1.20.1
Loader Fabric

annotationlib-1.0-1.20.1.jar targets 1.20.1 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is AnnotationLib required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does annotationlib-1.0-1.20.1.jar need?

annotationlib-1.0-1.20.1.jar. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add AnnotationLib without breaking your instance.

Built for annotationlib-1.0-1.20.1.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use annotationlib-1.0-1.20.1.jar. It targets 1.20.1 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside annotationlib-1.0-1.20.1.jar. It opens that exact file at the source.

About this project

What does AnnotationLib add?

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.

Project description from CurseForge.

Pick your setup

AnnotationLib by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

4 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

AnnotationLib versions and loaders

5 of 5 releases match

Looking for an older file? The official CurseForge project page is in Resources.