AnnotationLib
The magic of annotations :)
This library provides developers with convenient tools for working with annotations, significantly simplifying the process of creating Minecraft mods.
Main Features
Currently, the library supports four key systems:
- Registration - automatic registration of game objects
- Network Handler - management of network packets
- Command System - creation and processing of game commands
- Configuration System - mod parameter settings
Version Compatibility
The main development version is 1.20.1+. Versions 1.17.1-1.19.2 receive updates only with significant changes. Versions 1.16.5 and below are not supported.
Getting Started
Basic Setup
For each registration class, add an entry point to the fabric.mod.json file:
{
"entrypoints": {
"annotation_lib": [
"your class here"
],
"annotation_lib_client": [
"your client class here"
],
"annotation_lib_server": [
"your server class here"
]
}
}
Alternatively, you can use a direct call: AnnotationApi.register(YourClass.class);
Object Registration
To work with the registration system, you need to implement the IAnnotatedRegistryEntry interface.
Network Operations
For processing network packets, implementation of the IAnnotatedNetworkEntry interface is required.
Command System
Creation of game commands is done through implementation of the IAnnotatedNetworkEntry interface.
Configurations
It is recommended to use Cloth Config, this system provides only basic capabilities. To work, implementation of the IAnnotatedConfigEntry interface is required.