Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.08 KB

File metadata and controls

31 lines (20 loc) · 1.08 KB

Module: api

The api module contains all public contracts used by plugin developers.

What is inside

  • Service interfaces (for Bukkit service lookup)
  • API models and events
  • Shared annotations (@Inject, @EnableServices, @DreamAutoService)
  • Utility classes and builders

Key classes

Use this module when

You need compile-time contracts without depending directly on core internals.

Practical Example

import fr.dreamin.dreamapi.api.item.ItemRegistryService;
import fr.dreamin.dreamapi.plugin.DreamPlugin;

ItemRegistryService items = DreamPlugin.getService(ItemRegistryService.class);
boolean exists = items.isRegistered("starter_sword");