Wiki 9Minecraft Wiki 9Minecraft
Mod Remapping Api Wiki › Guides › Extending Remapping with Custom Hooks

Extending Remapping with Custom Hooks

What Hooks Allow

Mod Remapping API Mod provides hooks—integration points where other tools can intercept and modify the remapping process. This lets developers create custom compatibility solutions beyond what the base mod offers.

For Mod Developers

If you're developing a compatibility tool or launcher enhancement, you can tap into these hooks to adjust how mods are remapped. This is useful for handling edge cases, applying custom transformations, or adding version-specific fixes that the standard remapping can't handle.

Implementing Hooks

Hooks are called during the launch sequence before mods initialize. Your code can inspect mod bytecode, modify mappings, or inject compatibility patches. Refer to the mod's API documentation for available hook types and their execution order.

Best Practices

Keep hook implementations lightweight—heavy processing during launch slows startup. Test thoroughly across different game versions and mod combinations. Document which mods or scenarios your hook targets, so users understand when it applies.