Cite as
RedstoneFlux API 1.12
Original
https://github.com/CoFH/RedstoneFlux-1.12-Legacy
Pinned
CoFH/RedstoneFlux-1.12-Legacy @ 24719b6ede24b83df0def98d7be5f668ac31c32c
Accessed
2026-10-26
Licence
"All rights reserved" (README). The README calls it the standalone Redstone Flux API, notes that as of 1.12 it ships as a JAR, and points anyone who wants capabilities at Forge Energy ("it's literally the RF capability").
Credit
Team CoFH; the API's interface and implementation classes name King Lemming as author.
Notes
The RF API: `api/IEnergyHandler.java` and the neighbouring interfaces; `impl/EnergyStorage.java` is the reference store with capacity, max receive and max extract (the shape Forge Energy later copied, by Forge's own statement). Thermal Expansion machines use this `EnergyStorage` (cofh-thermalexpansion, `TileMachineBase.java`).

Cited on

Claims (2)

In Thermal Dynamics r2.3.9 (Minecraft 1.12.2), connected fluxducts of one tier form a grid that keeps its energy in one store; ducts of different tiers neither connect nor merge. The store holds five times the tier's transfer rate for each duct that touches a block. Energy put into any duct goes into that store, at most the transfer rate per insertion and up to the free space. Once a tick, while the store holds energy, each duct beside a block offers the blocks around it the store divided by the number of such ducts, worked out once for the tick (the remainder when that rounds to 0), and no more than the transfer rate; the round stops at a duct whose chunk is unloading. With the default base of 1,000 RF a tick, the five tiers (energyBasic, which the config's comment calls the Leadstone Fluxduct, energyHardened, energyReinforced, energySignalum, energyResonant) move 1,000, 4,000, 9,000, 16,000 and 25,000 RF a tick. The super-conducting duct has a transfer limit of 0, so it can't join these grids, and is excluded.src/main/java/cofh/redstoneflux/impl/EnergyStorage.java L27–30Code
Redstone Flux's reference store, in Team CoFH's RedstoneFlux API for Minecraft 1.12, is an amount of energy with a capacity, a most it takes in at once, and a most it gives out at once; changing the amount directly clamps it between 0 and the capacity. Thermal Expansion r5.3.9's machines use this class for their RF store.src/main/java/cofh/redstoneflux/impl/EnergyStorage.java L15–20src/main/java/cofh/redstoneflux/impl/EnergyStorage.java L114–123Code