Navigator is an api mod that allows for other mods to add integration for
- JourneyMap
- Xaeros World & Minimap
- VoxelMap (Limited support)
Map mods remain optional at runtime. A consumer owns its data and domain actions; Navigator owns viewport caching, layer buttons, rendering dispatch, search dispatch, and map-specific integration.
- API guide - architecture, complete examples, caching, interaction, waypoints, JourneyMap 6 native overlays, search, and compatibility guidance
NavigatorApi- registration entry point
The preferred implementation path is map-neutral:
- Implement
ILocationProviderfor the data shown on the map. - Extend
ButtonManagerandLayerManager(orInteractableLayerManager). - Extend
UniversalRenderStepfor rendering. - Use
UniversalLocationInteractableStepfor non-waypoint interaction, orUniversalInteractableStepwhen double-click should toggle a waypoint. - Return a
UniversalLayerRenderer/UniversalInteractableRendererfrom the manager and register it client-side.
NavigatorApi.registerLayerManager(MyLayerManager.INSTANCE);The JourneyMap-specific renderer and render-step APIs are deprecated because they support only JourneyMap 5. Use the universal APIs for JourneyMap 5, JourneyMap 6, and Xaero; map-specific APIs remain escape hatches only where the universal model cannot express required behavior.
Navigator depends on GTNHLib. Consumer mods should compile against Navigator while keeping supported map mods optional unless they deliberately use a map-specific API.