I built a registry and mixined into the Minecraft gamemode system and essentially circumvented editing the enum all together by allowing it to use the enum for survival or creative but use my own gamemodes +that enum for the custom gamemodes. The enum does nothing when my modes are active. Its just there so Minecraft doesnt break. I made the registry library really easy to use and i use it in all my mods when i need to either register gamemodes, energy types or something else