promotional bannermobile promotional banner
premium banner
Cross platform energy api that is compatible with forge energy and works on both forge and fabric

Description

Mine Flux

 

Mine Flux API is a cross platform energy api that aims to bridge the gap between forge energy and fabric. The forge version is completely compatible with existing forge energy systems. the fabric version brings its own version of energy that behaves exactly the same way as the forge version.

 

The unit is MF and the conversion ratio is 1 MF = 1 FE = 1 RF

 

THIS MOD REQUIRES ARCHITECTURY API

 

For developers wishing to use this api:

Your BlockEntity must implement IMFContainer and return the IMFStorage for the side. you will have to check if the Object parameter is an instance of Side.

for Forge BlockEntities, you must also use the Forge Energy Capability and feed it your IMFStorage based on the Side. Don't worry MFStorageForge implements both IMFStorage and forge's IEnergyStorage

On the forge side you can get the IMFStorage using Forge Energy capability. on fabric side you cast the BlockEntity/Item to IMFContainer and call getStorageFor() and pass in a Side/ItemStack. There are some

helper methods for this in EnergyUtil

 

This mod now adds an example block and item. they are fully functional so they can be used in survival :)