How liteldev/levilamina works
LeviLamina is a modular Minecraft Bedrock mod loader and C++ API. The documented user-to-result path is a mod developer building a C++ mod for the loader, which supplies APIs and runtime support; sampled loader code shows native-mod loading and lifecycle callbacks. Other visible branches include service management, event infrastructure, localization, and client world-storage UI. The excerpts do not establish most runtime wiring, so those relationships are omitted rather than inferred from co-location or imports alone.
Main entry points: NativeModManager.cpp Native loader · NativeMod.h Mod API · ILevelStorageManagerConnector.h Save connectors · WorldStorageManagerFacet.h World operations
Components 21
Mod runtime
- Mod API
src/ll/api/mod/NativeMod.h - Native loader
src/ll/core/mod/NativeModManager.cpp - Mod registry
src/ll/api/mod/ModManagerRegistry.cpp - Mod manager
src/ll/api/mod/ModManager.h
API services
- Event bus
src/ll/api/event/EventBus.h - Service manager
src/ll/api/service/ServiceManager.cpp - Service API
src/ll/api/service/Service.h - Localization
src/ll/api/i18n/I18n.h - Error results
src/ll/api/Expected.h
Client storage
- Storage screen
src-client/mc/client/gui/screens/controllers/StorageManagementScreenController.h - World operations
src-client/mc/client/gui/oreui/binding/facets/vanilla/WorldStorageManagerFacet.h - World details
src-client/mc/client/gui/oreui/binding/queries/menus/WorldStorageInfoQuery.h - Device storage
src-client/mc/client/gui/oreui/binding/queries/core/DeviceStorageInformationQuery.h
Bedrock support
- Level storage
src/mc/world/level/storage/LevelStorageManager.h - Save connectors
src/mc/world/level/storage/ILevelStorageManagerConnector.h - File storage
src/mc/deps/core/file/FileStorageArea.h - Session storage
src-client/mc/client/editor/serviceproviders/IClientDataTransferSessionStorage.h - Atmosphere storage
src-client/mc/client/renderer/AtmosphericScatteringSessionStorage.h - Bedrock definitions
src/mc/_HeaderOutputPredefine.h - Subscriptions
src/mc/deps/core/utility/pub_sub/Subscription.h
Other components
- Mod developer
Connections 7
- Mod developer → Mod API: writes C++ mods
README.md - Mod API → Native loader: loads through
src/ll/core/mod/NativeModManager.cpp - Native loader → Mod API: runs callbacks
src/ll/core/mod/NativeModManager.cpp - Native loader → Localization: formats diagnostics
src/ll/core/mod/NativeModManager.cpp - Level storage → Save connectors: exposes connectors
src/mc/world/level/storage/LevelStorageManager.h - Atmosphere storage → Session storage: implements
src-client/mc/client/renderer/AtmosphericScatteringSessionStorage.h - World operations → Save connectors