
Thunderbolt_lib
Thunderbolt_lib is the addon API and runtime bridge library for AE2 Lightning Tech.
130
0
Список изменений
Tracks AE2 Lightning Tech 1.0.3. Purely additive — every 1.0.2 API symbol and behavior is preserved, so existing plugins recompile unchanged.
Added
- Frozen ID constants —
com.qianchang.ae2lt_api.api.ids.AE2LTBlockEntityIds(six AE2LT block-entity IDs plusLIGHTNING_GRID_MEMBERS, the five grid-connected machines) andAE2LTRecipeIds(six recipe-type IDs). Plugins can now reference AE2LT registry IDs without compiling against AE2LT's main jar. - Native API detection bridge —
com.qianchang.ae2lt_api.api.bridge.AE2LTNativeBridgeprobes at runtime whether AE2LT's own first-party API (com.moakiee.ae2lt.api, namespaceae2lt) is loaded. The two API surfaces stay namespace-distinct; this library does not perform implicit conversion between them. LightningEnergyTier.CODEC(MojangCodec) andLightningEnergyTier.STREAM_CODEC(vanillaStreamCodec<RegistryFriendlyByteBuf, _>) — wire-format-compatible with AE2LT's ownLightningTier, so packet and NBT data round-trip cleanly between the two APIs.LightningEnergyTier.fromOrdinal(int)— static ordinal decoder for packet round-trips.LightningCollectedEvent.isNaturalWeather()plus a matching 5-argument constructor.
Changed
mod_versionandAE2LTCapabilities.API_VERSIONbumped to 1.0.3.AE2LTLightningCollectorEventBridgenow propagates the natural-weather flag through toLightningCollectedEvent.AE2LTCapabilitiesJavadoc clarifies the deliberate namespace split between this library (ae2lt_api:lightning_energy) and AE2LT's own first-party capability (ae2lt:lightning_energy).
Compatibility
- All 1.0.2 public signatures, serialization names, capability IDs, and recipe IDs are preserved.
LightningCollectedEvent's 4-argument constructor still works and defaultsnaturalWeathertofalse.- Migration: bump the dependency version coordinate — no source changes required.
Full diff: CHANGELOG.md
Метаданные
Канал релиза
Release
Номер версии
1.0.3
Загрузчики
NeoForge
Версии игры
1.21.1
Загрузок
3
Дата публикации
1 мес. назад

