promotional bannermobile promotional banner

Redirectionor [Retro]

Avoid Enum values allocation in codes and improve game performance.
Back to Files

redirectionor-1.9 for 1.7.10.jar

File nameredirectionor-1.9 for 1.7.10.jar
Uploader
HilebHileb
Uploaded
Jul 30, 2025
Downloads
56.4K
Size
119.6 KB
Mod Loaders
Forge
File ID
6827742
Type
R
Release
Supported game versions
  • 1.7.10

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:redirectionor-retro-907559:6827742")

Learn more about Curse Maven

What's new

Add a new mode for debug. You could open "checkEnumsWhenRunningTime" (true) at "redirectionor_cfg.json" to enable it.
When this mode enabled, redirectionor will check your enums. When the `$VALUE$` was modified, redirectionor will print a IllegalStateException at log where you can see the enum and caller.
```
[15:25:57] [main/INFO] [STDERR]: [com.Hileb.teampotato.redirectionor.Redirectionor:logError:30]: java.lang.IllegalStateException : net/minecraft/client/shader/ShaderLoader#values() has been broken.
[15:25:57] [main/INFO] [STDERR]: [com.Hileb.teampotato.redirectionor.Redirectionor:logError:30]:     at net.minecraft.client.shader.ShaderLoader$ShaderType.redirectionor_logError(ShaderLoader.java)
[15:25:57] [main/INFO] [STDERR]: [com.Hileb.teampotato.redirectionor.Redirectionor:logError:30]:     at net.minecraft.client.shader.ShaderLoader$ShaderType.redirectionor_checkEnums(ShaderLoader.java)
[15:25:57] [main/INFO] [STDERR]: [com.Hileb.teampotato.redirectionor.Redirectionor:logError:30]:     at net.minecraft.client.shader.ShaderLoader$ShaderType.values(ShaderLoader.java:97)
[15:25:57] [main/INFO] [STDERR]: [com.Hileb.teampotato.redirectionor.Redirectionor:logError:30]:     at com.Hileb.teampotato.redirectionor.demo.EnumTestDemo.enumFacing(EnumTestDemo.java:19)
[15:25:57] [main/INFO] [STDERR]: [com.Hileb.teampotato.redirectionor.Redirectionor:logError:30]:     at com.Hileb.teampotato.redirectionor.demo.EnumTestDemo.onLaunch(EnumTestDemo.java:13)
[15:25:57] [main/INFO] [STDERR]: [com.Hileb.teampotato.redirectionor.Redirectionor:logError:30]:     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[15:25:57] [main/INFO] [STDERR]: [com.Hileb.teampotato.redirectionor.Redirectionor:logError:30]:     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[15:25:57] [main/INFO] [STDERR]: [com.Hileb.teampotato.redirectionor.Redirectionor:logError:30]:     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[15:25:57] [main/INFO] [STDERR]: [com.Hileb.teampotato.redirectionor.Redirectionor:logError:30]:     at java.lang.reflect.Method.invoke(Method.java:498)
```
In that case, we could add `net.minecraft.client.shader.ShaderLoader` to config and block it. Or remove the mod `com.Hileb.teampotato.redirectionor.demo.EnumTestDemo`.

**Full Changelog**: https://github.com/MCTeamPotato/Redirector/compare/1.12.2-1.8.8-1.8_...1.8_for_1.12.2_1.8.8

This mod has no additional files