Welcome to the public documentation for DreamAPI.
- Read the architecture overview:
docs/architecture.md - Pick your module entry point:
- Browse services (folder guide):
docs/services/README.md - Copy practical snippets:
docs/examples/service-recipes.md
This documentation is written for plugin developers integrating DreamAPI on Paper. It focuses on practical service usage and links every feature to concrete classes in the repository.
- Root API entrypoint:
api/src/main/java/fr/dreamin/dreamapi/api/DreamAPI.java - Service loader/runtime:
core/src/main/java/fr/dreamin/dreamapi/core/service/ServiceAnnotationProcessor.java - Plugin bootstrap base:
plugin-base/src/main/java/fr/dreamin/dreamapi/plugin/DreamPlugin.java
import fr.dreamin.dreamapi.plugin.DreamPlugin;
import fr.dreamin.dreamapi.api.glowing.service.GlowingService;
public final class MyPlugin extends DreamPlugin {
@Override
public void onDreamEnable() {
GlowingService glowing = DreamPlugin.getService(GlowingService.class);
getLogger().info("Service loaded: " + glowing.getClass().getSimpleName());
}
@Override
public void onDreamDisable() {}
}