promotional bannermobile promotional banner

Mine Flux API

Cross platform energy api that is compatible with forge energy and works on both forge and fabric

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 :)

 

The Mine Flux API Team

profile avatar
  • 4
    Followers
  • 11
    Projects
  • 26.2K
    Downloads
Donate

More from KernelPanicView all

  • Mine GUI API project image

    Mine GUI API

    • 1.0K
    • Mods

    Cross Platform GUI API that is compatible with forge energy and works on both forge and fabric

    • 1.0K
    • February 28, 2022
    • Mods
    • +1
  • Mine Tags API project image

    Mine Tags API

    • 1.1K
    • Mods

    Brings all those handy tags added by forge to fabric

    • 1.1K
    • February 11, 2022
    • Mods
    • +1
  • Noteblocks++ project image

    Noteblocks++

    • 2.5K
    • Mods

    Extends Noteblock Octave Range

    • 2.5K
    • January 12, 2022
    • Mods
    • +1
  • Timey Wimey Holes project image

    Timey Wimey Holes

    • 329
    • Mods

    Seamless BOTI for the New Tardis Mod!

    • 329
    • May 24, 2021
    • Mods
    • +4
  • Mine GUI API project image

    Mine GUI API

    • 1.0K
    • Mods

    Cross Platform GUI API that is compatible with forge energy and works on both forge and fabric

    • 1.0K
    • February 28, 2022
    • Mods
    • +1
  • Mine Tags API project image

    Mine Tags API

    • 1.1K
    • Mods

    Brings all those handy tags added by forge to fabric

    • 1.1K
    • February 11, 2022
    • Mods
    • +1
  • Noteblocks++ project image

    Noteblocks++

    • 2.5K
    • Mods

    Extends Noteblock Octave Range

    • 2.5K
    • January 12, 2022
    • Mods
    • +1
  • Timey Wimey Holes project image

    Timey Wimey Holes

    • 329
    • Mods

    Seamless BOTI for the New Tardis Mod!

    • 329
    • May 24, 2021
    • Mods
    • +4