Язык

AnnotationLib

AnnotationLib

Modrinth

The magic of annotations :)

9.6k загрузок 1 подписчиков обновлено 25mo ago
последняя v1.0 Modrinth
Fabric 1.17.1 – 1.20.1 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.

Версии

Release
1.0
fabric · 1.17.1 · 25mo ago
WARNING: Link Failure warning disabled in 1.17.1-
122
Release
1.0
fabric · 1.18.2 · 25mo ago
Note: You dont need to register ItemGroup with this lib since this will be auto registered.
107
Release
1.0
fabric · 1.19.4 · 25mo ago
94
Release
1.0
fabric · 1.20.1 · 25mo ago
Add hotkey AutoNetwork
7.8k
Beta
0.8.6
fabric · 1.20.1 · 25mo ago
221
Beta
0.8.4
fabric · 1.20.1 · 25mo ago
Add hotkey auto forward
86
Beta
0.8.2
fabric · 1.20.1 · 25mo ago
Add Particle, BlockEntity, Keybinding, Potion register
87
Beta
0.7.3
fabric · 1.20.1 · 25mo ago
Fix server network handler only register on dedicated server
350
Beta
0.7.2
fabric · 1.20.1 · 26mo ago
remove command env add before callback
99
Beta
0.7.1
fabric · 1.20.1 · 26mo ago
Add auto config and new registration system. Too many bugs in 0.6.x so i jump it.
97
Beta
0.5
fabric · 1.20.1 · 26mo ago
Add Command System
93
Beta
0.4.1
fabric · 1.20.1 · 26mo ago
Fix Mixin refmap error
82

Комментарии 0

Пока нет комментариев. Будь первым, кто поделится мнением.

Скачать AnnotationLib

Файлы отдаются напрямую с первоисточника. Modgrid не хранит и не изменяет их.