Home›Java›Mods›LightApi - Modern Annotation-Based API for Developers
LightApi - Modern Annotation-Based API for Developers
ModsJava

LightApi - Modern Annotation-Based API for Developers

Java mod listed for Minecraft 1.21. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot

LightApi
The Advanced, Modern API for Your PaperMC Server
​
What is LightApi?
LightApi is a powerful backend library designed for Minecraft plugin developers who want to streamline their workflow and build more robust plugins, faster. It removes the repetitive boilerplate code by providing a clean, annotation-driven system for common tasks like command and listener registration.
Built with modern practices in mind, it includes a type-safe language manager with MiniMessage support, making multi-language support a breeze. If you're a developer, LightApi is the foundational toolbox you need to bring your ideas to life without getting bogged down in the basics.
[HR][/HR]
Core Features for Developers
How to Use LightApi in Your Plugin
Integrating LightApi is simple:
1. Add the Dependency:
Add LightApi as a dependency in your pom.xml (for Maven) or build file.
2. Depend in Your plugin.yml:
Make sure your plugin loads after LightApi by adding this to your plugin.yml:
Code (Text):
depend: [LightApi]
3. Register Your Modules:
In your plugin's onEnable method, register all your commands and listeners with one simple call:
Code (Text):

@Override
public void onEnable() {
// Register all commands in your commands package
LightApiAccessor.get().getCommandManager().registerCommands(this, "com.myplugin.commands");
code
Code
// Register all listeners in your listeners package
LightApiAccessor.get().getListenerManager().registerListeners(this, "com.myplugin.listeners");
}
 
It's that easy! You can now focus on writing your plugin's logic.
Support & Community
Have questions, need help implementing LightApi, or want to share what you've built? Join our official Discord community!
Click here to join our Discord Server!
Thank you for choosing LightApi to power your next project!
This is a dependency for other plugins and does not add features on its own.​

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

LightApi - Modern Annotation-Based API for Developers is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 100 times (via Spigot). Download it and open it directly in the game.

Explore more