Skip to content

1.0.0

Latest

Choose a tag to compare

@Traqueur-dev Traqueur-dev released this 07 Oct 16:32
· 3 commits to main since this release

Changelog - EnergyLib v1.0.0

[1.0.0] - 2024-10-07

Added

  • EnergyComponent System: Introduced core EnergyComponent<T> class to represent modular energy systems, including EnergyProducer, EnergyConsumer, EnergyStorage, and EnergyTransporter.
  • Energy Networks: Dynamic energy network detection based on block placement. Automatically connect components such as producers, consumers, storage units, and transporters into energy networks.
  • Energy Handling: Added energy management logic to balance production, storage, and consumption. Excess energy is stored in EnergyStorage components, and shortages are handled gracefully.
  • Block Placement and Network Merging: Automatically detect neighboring energy components when a block is placed. Networks merge when a connecting block links two independent networks.
  • Tick-Based Updates: Energy networks are updated every tick, managing energy flow and ensuring real-time behavior.
  • PersistentDataContainer Integration: Energy networks persist across server restarts, using Minecraft's PersistentDataContainer for block-based data persistence.
  • Energy Shortage Handling: Logic added to handle cases where energy production and storage are insufficient to meet consumer demand.
  • Asynchronous Operations: Optimized network discovery and updating using async operations, with chunk-based limitations to ensure efficient performance.