
EmakiCorelib
Shared native Java core library for the Emaki plugin suite
22
0
Список изменений
EmakiCoreLib Changelog
[2.0.0] - 2026-04-04
Added
Asynchronous Infrastructure & Performance Monitoring
- Added
AsyncTaskScheduler,AsyncFileService,AsyncYamlFilesto provide unified asynchronous execution capabilities for actions, file I/O, GUI, and assembly processes. - Added
PerformanceMonitor,PerformanceSnapshot, and an operation-level statistics model for continuous tracking of execution time, success rates, and warning counts. - Added generic
CacheManager/CacheStatsfor caching high-frequency hotspot data such as preview results.
GUI Asynchronous Rendering
GuiServicenow has anopenAsync(...)opening flow.- Added
AsyncGuiRenderer, supporting slot item preparation on async threads followed by a single batch fill-back on the main thread. GuiSessiongained the ability to fill back rendering results, facilitating the decoupling of "computation" and "display" for complex GUIs.
Item Assembly 2.0
EmakiItemAssemblyServiceaddedpreviewAsync(...),giveAsync(...), and preview caching.- Added
AssemblyFeedbackHandler, allowing business plugins to receive feedback on Lore search-and-insert failures, regex errors, and configuration errors. - Added
ItemPresentationCompiler,PresentationCompileResult,PresentationCompileIssue. - Name modification, Lore modification, and search-and-insert rules can now be compiled first and then rendered, making it easier for upper-level plugins like
EmakiForgeto reuse them.
Changed
Action System Scheduling Upgrade
- The
Actioninterface added extension points:executionMode()andtimeoutMillis(). - Added
ActionExecutionMode, currently supportingSYNCandASYNC_IO. ActionDispatchSchedulerwill automatically choose between main-thread scheduling or async I/O scheduling based on the action's execution mode.ActionExecutoruniformly integrates delay, timeout, failure fallback, and asynchronous execution pipelines.
YAML & Resource Loading Optimizations
YamlDirectoryLoaderaddedloadAsync(), allowing directory-type configurations to directly utilize the CoreLib async scheduler.EmakiCoreLibPluginwill now automatically migrate bundled resources from the legacydefaults/directory during startup.- Plugin initialization phase uniformly integrates the async file service, namespace registration, performance monitoring, and assembly service async configuration.
Build & Dependencies
- Module version upgraded to
2.0.0. - Added
gsondependency and supplemented Shade filtering rules to avoid packaging conflicts withmodule-info.classand some manifest files.
Upgrade Notes
- Both
EmakiAttribute 2.0.0andEmakiForge 2.0.0are adapted based on this version of CoreLib. - Custom actions involving I/O operations (e.g., database, HTTP, file) are recommended to be explicitly declared as
ASYNC_IO. - Plugins relying on the assembly system can start using async preview, async distribution, and assembly feedback callbacks.
Known Issues
- None
Файлы
EmakiCoreLib-2.0.0.jar(661.55 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
2.0.0
Загрузчики
PaperPurpur
Версии игры
1.21–1.21.11
Загрузок
8
Дата публикации
1 нед. назад
