Thunderbolt_lib is the expansion library (API mod) for AE2 Lightning Tech, providing third-party addon mods with Lightning Energy capability interfaces, recipe builders, and plugin loading support.
This mod provides the following developer APIs:
-
The Lightning Energy capability interface ILightningEnergyHandler, for storing and transmitting Lightning Energy;
-
A runtime bridge for AE2LT lightning-connection machines;
-
The LightningCollectedEvent, for addon mods to listen to and intercept;
-
Six recipe builders: LightningAssemblyRecipeBuilder, LightningTransformRecipeBuilder, LightningSimulationRecipeBuilder, OverloadProcessingRecipeBuilder, CrystalCatalyzerRecipeBuilder, and LightningStrikeRecipeBuilder, corresponding to the ae2lt:lightning_assembly, ae2lt:lightning_transform, ae2lt:lightning_simulation, ae2lt:overload_processing, ae2lt:crystal_catalyzer, and ae2lt:lightning_strike recipe types respectively;
-
A plugin loading mechanism based on @AE2LTPlugin, IAE2LTPlugin, and ServiceLoader;
-
The static helper facade AE2LTAPI.
Addon mods must declare both ae2lt_api and ae2lt as required dependencies in neoforge.mods.toml, with the version range set to [1.0.0,), ordering set to AFTER, and side set to BOTH.
Thunderbolt_lib 是 AE2 Lightning Tech 的扩展前置,为第三方拓展模组提供闪电能量能力接口、配方构建器及插件加载支持。
该模组提供以下开发者接口:
-
闪电能量能力接口 ILightningEnergyHandler,用于闪电能量的存储与传输;
-
AE2LT 闪电连接机器的运行时桥接;
-
闪电收集事件 LightningCollectedEvent,供拓展模组监听与拦截;
-
六种配方构建器:LightningAssemblyRecipeBuilder、LightningTransformRecipeBuilder、LightningSimulationRecipeBuilder、OverloadProcessingRecipeBuilder、CrystalCatalyzerRecipeBuilder 与 LightningStrikeRecipeBuilder,分别对应 ae2lt:lightning_assembly、ae2lt:lightning_transform、ae2lt:lightning_simulation、ae2lt:overload_processing、ae2lt:crystal_catalyzer 与 ae2lt:lightning_strike 配方类型;
-
基于 @AE2LTPlugin、IAE2LTPlugin 与 ServiceLoader 的插件加载机制;
-
静态辅助门面 AE2LTAPI。
拓展模组需在 neoforge.mods.toml 中将 ae2lt_api 与 ae2lt 同时声明为 required 依赖,版本范围填写 [1.0.0,),ordering 为 AFTER,side 为 BOTH。