Thunderbolt_lib

A runtime bridge library and addon API for AE2 Lightning Tech, providing lightning energy capability interfaces, recipe builders, and plugin loading support for addon mods.

File Details

Thunderbolt_lib-1.0.3.jar

  • R
  • May 3, 2026
  • 54.27 KB
  • 6
  • 1.21.1
  • NeoForge

File Name

Thunderbolt_lib-1.0.3.jar

Supported Versions

  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:thunderbolt-lib-1529731:8032457"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Summary
Tracks the AE2-Lightning-Tech 1.0.3 upstream release. Purely additive, zero breaking changes. Starting from 1.0.2, AE2LT introduced its own first-party API (package com.moakiee.ae2lt.api, namespace ae2lt). This release adds ID constants, codec helpers, and a native-API detection bridge while keeping the ae2lt_api namespace independent, enabling ID / serialization-level interoperability between this library and the AE2LT built-in API.
Added
  • api/ids/AE2LTBlockEntityIds: Frozen ResourceLocation constants for 6 block entities, plus the LIGHTNING_GRID_MEMBERS list (5 grid-connected machines)
  • api/ids/AE2LTRecipeIds: Frozen ResourceLocation constants for 6 recipe types
  • api/bridge/AE2LTNativeBridge: isNativeApiAvailable() / nativeNamespace() / libraryNamespace() / toNativeTierName(LightningEnergyTier)
  • LightningEnergyTier.CODEC: Mojang Codec<LightningEnergyTier>
  • LightningEnergyTier.STREAM_CODEC: StreamCodec<RegistryFriendlyByteBuf, LightningEnergyTier>; byte-level ordinal interop with AE2LT's built-in LightningTier.STREAM_CODEC
  • LightningEnergyTier.fromOrdinal(int)
  • LightningCollectedEvent.isNaturalWeather() + 5-arg constructor (legacy 4-arg constructor retained)
Compatibility
All public signatures, serialization names, capability IDs, and recipe IDs from 1.0.2 remain intact.
Legacy addons upgrading to 1.0.3 only need to bump the dependency version coordinate; no source changes required.
The legacy 4-arg constructor of LightningCollectedEvent is retained, defaulting naturalWeather to false.
Namespace Separation
<header class="table-actions" data-v-e7c0e5f5="">
表格
 
 
</header>
  Library AE2LT First-Party
Java package com.qianchang.ae2lt_api.api.* com.moakiee.ae2lt.api.*
Namespace ae2lt_api ae2lt
Capability ID ae2lt_api:lightning_energy ae2lt:lightning_energy
The two APIs are intentionally kept separate; this library does not perform implicit bridging. AE2LTNativeBridge is provided solely for presence detection.