Redirectionor [Retro]
Popular optimization mods like Sodium, Lithium, and Phosphor often use a specific technique: replacing references to element values in enum classes with static final field values. This method speeds up access to constants and reduces unnecessary computations when frequently accessing them.
Redirectionor implements this approach to reduce the game's memory consumption. The mod redirects most Enum#values() calls, which, while not being a completely comprehensive solution, provides noticeable results.
Compatibility: Redirectionor is compatible with almost all modifications.
Note: The mod works on both client and server. It can be installed on the server without requiring clients to have it.
If compatibility issues arise, you can configure the redirectionor_cfg.json file. Also, the code is available for reference.