Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Easily manage energy production, storage, and consumption with modular components.
Changelog - EnergyLib v1.0.0
[1.0.0] - 2024-10-07
Added
- EnergyComponent System: Introduced core
EnergyComponent<T>
class to represent modular energy systems, includingEnergyProducer
,EnergyConsumer
,EnergyStorage
, andEnergyTransporter
. - 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.
Information
Published on | October 7, 2024 |
---|---|
Downloads | 3 |
Platforms
Paper (1.21)