@kairo-js/router
Inter-addon communication framework for Minecraft Bedrock Edition. Use the router object and ApiRegistration to enable API calls, hooks, and custom events across multiple behavior packs.
Available Versions
0.3.0-beta.0
Classes
- AddonActivateAfterEvent
- AddonDeactivateBeforeEvent
- AddonEventRegistration
- KairoAfterEvents
- ApiRegistration
- KairoBeforeEvents
- KairoContext
- KairoCustomCommandRegistry
- KairoRouter
- KairoStartupBeforeEvent
Interfaces
- AddonEventRegistration
- AfterHookContext
- ApiHandlerContext
- ApiRegistration
- BeforeHookContext
- CanceledResult
- Disposable
- HookOptions
- HookRollbackContext
- KairoRegistry
- Subscribable
Types
Errors
- AfterHookExecutionError
- ApiNotFoundError
- BeforeHookExecutionError
- HandlerExecutionError
- ProtocolError
- RequestTimeoutError
Objects
router
static readonly router: KairoRouter
Main class managing addon lifecycle, API communication, and events. This is the primary entry point of the kairo-router package.
Type: KairoRouter