Annotated

Quick rating

Community listing page, reviews here may not be monitored by the author.

Annotated

No reviews yet

Automated code generator for packets !

Mod Loaders
Minecraft

About

Description

Annotated is at the same time a development tool and a library.

The tool includes an annotation processor that can generate code for you.

Features :

  • Generate packet class :

Annotated can generate a packet class from a "data" class (a class with fields for the data)

You can implement the IClientPacket interface to define what happens when the packet is received on the client and / or IServerPacket for the server.

Then just add the @GeneratePacket annotation to your class and Annotated will automatically generate a packet class with the correct constructor, the fromBytes and the toByte methods.

Examples : Simple example, Example with all data types

  • Generate a network class and register the packets :

Adding the @GenerateNetwork on your main class will generate a network with all your generated packets already registered.

Example : Test class