Fix gold renders

This commit is contained in:
Vincent Lee committed 2020-01-21 11:45:25 -06:00
1 parent de450cb633
commit 549adb3d42
4 files changed
+61 -8

No files matched your search

@@ -10,6 +10,11 @@
*/
package vazkii.botania.common.lib;
import net.minecraftforge.fml.common.ObfuscationReflectionHelper;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
public final class LibObfuscation {
// EntityLiving
public static final String GET_LIVING_SOUND = "func_184639_G";
@@ -22,4 +27,12 @@ public final class LibObfuscation {
// HoeItem
public static final String HOE_LOOKUP = "field_195973_b";
public static MethodHandle getMethod(Class<?> clazz, String srg, Class<?>... paramTypes) {
try {
return MethodHandles.publicLookup().unreflect(ObfuscationReflectionHelper.findMethod(clazz, srg, paramTypes));
} catch (IllegalAccessException e) {
throw new IllegalStateException("Can't find " + srg, e);
}
}
}