This mod is for 1.12.2-, If you are looking for 1.16.5+ go Redirectionor
In the well-known optimization mods for Minecraft, Sodium, Lithium or Phosphor, there is a common optimization concept: replacing references to element values in enum classes with static final field values references.
This technique aims to enhance performance by improving access speed and reducing unnecessary computations when frequently accessing the constants.
Redirectionor is the implementation of this concept to reduce the required memory of the game.
It's quite wide. Nearly every Enum#values() call is redirected in this mod......
This implementation is not "thorough", but it is still quite impressive.
Redirectionor is designed as compatible with every mod. Codes at 1.12.2-1.8.8 or 1.7.10
If you encounter any compatibility problem, pls create a new Issue on my issues , or adjust the redirectionor_cfg.json
Redirectionor works on both the client and server and can be installed on servers without requiring clients to also have the mod.