Due to some nested classes in NMS are package-private it should be possible that Class#forName and Class#getDeclaredField are supported by the reobfJar task.
Example:
Class.forName("net.minecraft.network.ConnectionProtocol$PacketSet").getDeclaredField("classToId")
should be reobfuscated to:
Class.forName("net.minecraft.network.EnumProtocol$a").getDeclaredField("b")
or:
Entity.class.getDeclaredField("tickCount")
should be reobfuscated to:
Entity.class.getDeclaredField("ag")
It seems that SpecialSource already supports it in its RemapperProcessor.
Due to some nested classes in NMS are package-private it should be possible that
Class#forNameandClass#getDeclaredFieldare supported by the reobfJar task.Example:
Class.forName("net.minecraft.network.ConnectionProtocol$PacketSet").getDeclaredField("classToId")should be reobfuscated to:
Class.forName("net.minecraft.network.EnumProtocol$a").getDeclaredField("b")or:
Entity.class.getDeclaredField("tickCount")should be reobfuscated to:
Entity.class.getDeclaredField("ag")It seems that SpecialSource already supports it in its RemapperProcessor.