Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.78 KB

File metadata and controls

44 lines (32 loc) · 1.78 KB

DreamAPI Documentation

Welcome to the public documentation for DreamAPI.

Start Here

  1. Read the architecture overview: docs/architecture.md
  2. Pick your module entry point:
  3. Browse services (folder guide): docs/services/README.md
  4. Copy practical snippets: docs/examples/service-recipes.md

Audience

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.

Source of truth

Practical Example

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() {}
}