mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-28 07:55:45 +00:00
Fix gold renders
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user