Skip to content
Real Ant Engineer edited this page Oct 29, 2025 · 2 revisions

๐Ÿœ Formic API

Formic API is a modular library providing tools for simulation, formatting, and structure management in Minecraft Forge mods.
Itโ€™s organized into five main systems:


๐Ÿ“Š Math

Core mathematical utilities for simulation and physical modeling:

  • 1D & 2D tabulated functions for data interpolation
  • Numerical solvers and derivation helpers

๐Ÿงฎ Units & Formatting

A unit-aware text formatting system:

  • Customizable physical units (Temperature, Pressure, RadiationFlux, etc.)
  • Unified interface for consistent UI text generation

๐Ÿ—๏ธ Multiblock

A flexible API for creating and managing block entites that are more than one block large:

  • Controllers (IMBController, MBController, MBKineticController)
  • Shape and structure logic (MBShape, MBStructureBlock)

๐Ÿ—‚๏ธ Data Loaders

Datapack-driven data integration and generation tools:

  • FloatMapDataLoader<T> โ€” a generic float-value map for any registry (blocks, fluids, biomes, etc.)
  • TwoDTabulatedFunctionLoader โ€” loads tabulated 2D functions from datapacks
  • TwoDTabulatedFunctionProvider โ€” generates 2D tables during data generation (datagen)

๐Ÿ’ง Water Models (EOS)

Physical modeling utilities for real gas and fluid behavior:

  • State representation (SpecificRealGazState)
  • Cubic equations of state (PengRobinsonEOS, VanDerWaalsEOS, WaterCubicEOS)
  • Tools for pressure, enthalpy, and phase equilibrium calculations

๐Ÿงฑ Formic API powers scientific, modular, and data-driven gameplay systems.

Clone this wiki locally