CoFHLib — Reference
Shared Item & Block Frameworks
CoFHLib adds the "blueprints" for several key item and block types. While the physical items appear in mods like Thermal Foundation, their behavior is governed by CoFHLib.
Wrench API (IToolHammer)
CoFHLib defines the standard wrench interface. This allows a single tool (like the Crescent Hammer) to interact with blocks from dozens of different mods. It handles: * Dismantling: Safely removing machines with their internal data intact. * Rotation: Changing the facing of blocks. * Configuration: Toggling modes on pipes and ducts.
Reconfigurable Sides
This mechanic allows blocks to have specialized faces. Through CoFHLib, machines can be programmed to have specific sides for: * Input: Accepting items or fluids. * Output: Ejecting finished products. * Power: Receiving RF energy.
Secure Blocks (ISecurable)
CoFHLib provides the backend for the security system, allowing players to set blocks to Public, Private, or Friends Only access levels using a Signalum Security Lock.