Minecraft Fabric Flux mod 2026 download
logo
minecraft mod Fabric Flux

Fabric Flux

Game Version: 1.16.5
Total Downloads: 1,769
Updated: Jan 28, 2021
Created: Jul 21, 2019
Download Fabric FluxDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
fabricflux-1.4.0.jar +2 More+2 Others release 18.16 KB Jan 28, 2021 1.16.5 197 download Fabric Flux fabricflux-1.4.0.jar

+2 More+2 Others releaseDownload
fabricflux-1.3.0.jar +2 More+2 Others release 17.90 KB May 18, 2020 1.15.2 73 download Fabric Flux fabricflux-1.3.0.jar

+2 More+2 Others releaseDownload
fabricflux-1.2.0.jar +2 More+2 Others release 17.90 KB Jan 25, 2020 1.15.1 94 download Fabric Flux fabricflux-1.2.0.jar

+2 More+2 Others releaseDownload
fabricflux-1.1.0.jar +2 More+2 Others release 17.77 KB Dec 18, 2019 1.15.1 150 download Fabric Flux fabricflux-1.1.0.jar

+2 More+2 Others releaseDownload
fabricflux-1.0.0.jar +2 More+2 Others release 16.01 KB Dec 1, 2019 1.14.4 99 download Fabric Flux fabricflux-1.0.0.jar

+2 More+2 Others releaseDownload
fabricflux-0.3.0.jar +2 More+2 Others release 15.34 KB Aug 7, 2019 1.14.4 858 download Fabric Flux fabricflux-0.3.0.jar

+2 More+2 Others releaseDownload
fabricflux-0.2.0.jar +2 More+2 Others release 11.11 KB Jul 26, 2019 1.14.4 148 download Fabric Flux fabricflux-0.2.0.jar

+2 More+2 Others releaseDownload
fabricflux-0.1.0.jar +2 More+2 Others release 11.17 KB Jul 21, 2019 1.14.3 57 download Fabric Flux fabricflux-0.1.0.jar

+2 More+2 Others releaseDownload

Screenshots

Description

Share this:

Warning: This mod is not part of Fabric. It is a 3rd party library that allows developers to create energy-based mods with Fabric.

Fabric Flux

Fabric Flux (in short FF) is a mod/library aiming to provide energy implementation to Fabric mods.

Battery

Battery crafting recipe
Try using this battery on entities.

How this works

There are two basic things to remember: Containers and Interfaces.

  • Flux Container is an object that provides access to interfaces. Some containers may require some data for access. For example: Item will require ItemStack to provide an interface.
  • Flux Interface is used to transfer energy from one container to another. Two interfaces are needed to complete an energy transfer.

Implementation tips for developers

  • Every Item accepting energy should implement IFluxContainer and always check in getFluxFor if object type is ItemStack. Other object types are welcome.
  • Any BlockEntity can implement both IFlux and IFluxContainer. If controller is implemented then getFluxFor method should always check if object type is Direction. Other object types are welcome.
  • If an interface simply does not accept input/output, it has to return -1 instead of energy amount (which won't be less than 0). This should be checked before calculating energy.
  • DO NOT STORE Flux Interfaces, only containers. Some interfaces can be freshly created by a controller. There are some exceptions for items like (dis)charging a battery (Item has to create a fresh interface because it can't be stored in an item stack).
  • IFlux::to should be used to transfer energy. This method can be overriden.
  • FluxBattery class is provided in the API as a basic interface.

Energy API differences

FF differs a bit from Forge Energy API. This mod has less methods to implement and it is not capability-based (it uses containers instead). There are no canExtractEnergy/canReceiveEnergy counterparts, checking with extractFlux/receiveFlux(0, true) does the same, although this is not required.

Comments

Add a comment