Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/technici4n/grandpower
Simple Energy API with support for long amounts, and full interoperability with Forge Energy.
https://github.com/technici4n/grandpower
Last synced: 2 months ago
JSON representation
Simple Energy API with support for long amounts, and full interoperability with Forge Energy.
- Host: GitHub
- URL: https://github.com/technici4n/grandpower
- Owner: Technici4n
- License: mit
- Created: 2024-02-21T22:42:00.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-06-15T20:24:05.000Z (7 months ago)
- Last Synced: 2024-10-03T11:29:22.887Z (3 months ago)
- Language: Java
- Size: 271 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# GrandPower
Simple Energy API with support for long amounts, and full interoperability with Forge Energy.
- (Sort of) Standard `long`-based energy API for NeoForge.
- Automated 1:1 conversion to and from Forge Energy (`IEnergyStorage`).
- Useful default implementations and utility methods.## Adding GrandPower to your project
TODO## Using GrandPower
Just use [`ILongEnergyStorage`](src/main/java/dev/technici4n/grandpower/api/ILongEnergyStorage.java)
instead of `IEnergyStorage` in your project. It's that simple!You can use the `BLOCK`, `ENTITY`, and `ITEM` capabilities from `ILongEnergyStorage`,
and everything will be automatically be converted to and from Forge Energy.
To have a look at how the conversion works,
check out [`GrandPowerImpl`](src/main/java/dev/technici4n/grandpower/impl/GrandPowerImpl.java).