Skip to content

Instantly share code, notes, and snippets.

@darkevilmac
Created April 28, 2017 22:40
Show Gist options
  • Save darkevilmac/73856c4f9940b2d071b169f5607ef336 to your computer and use it in GitHub Desktop.
Save darkevilmac/73856c4f9940b2d071b169f5607ef336 to your computer and use it in GitHub Desktop.
[15:38:53] [Client thread/INFO]: [STDERR]: java.lang.invoke.WrongMethodTypeException: cannot convert MethodHandle()Map to (Object)Object
[15:38:53] [Client thread/INFO]: [STDERR]: at java.lang.invoke.MethodHandle.asTypeUncached(MethodHandle.java:775)
[15:38:53] [Client thread/INFO]: [STDERR]: at java.lang.invoke.MethodHandle.asType(MethodHandle.java:761)
[15:38:53] [Client thread/INFO]: [STDERR]: at java.lang.invoke.Invokers.checkGenericType(Invokers.java:321)
[15:38:53] [Client thread/INFO]: [STDERR]: at com.elytradev.concrete.reflect.accessor.MethodHandlesAccessor.get(MethodHandlesAccessor.java:39)
[15:38:53] [Client thread/INFO]: [STDERR]: at com.elytradev.concrete.resgen.SimpleResourcePack.getItemModel(SimpleResourcePack.java:198)
[15:38:53] [Client thread/INFO]: [STDERR]: at com.elytradev.concrete.resgen.SimpleResourcePack.getInputStreamByName(SimpleResourcePack.java:144)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraft.client.resources.AbstractResourcePack.getInputStream(AbstractResourcePack.java:47)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraft.client.resources.FallbackResourceManager.getInputStream(FallbackResourceManager.java:75)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:65)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:334)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraftforge.client.model.ModelLoader.access$1600(ModelLoader.java:127)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:941)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:340)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:175)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:160)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:122)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraft.client.Minecraft.init(Minecraft.java:541)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraft.client.Minecraft.run(Minecraft.java:387)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraft.client.main.Main.main(Main.java:118)
[15:38:53] [Client thread/INFO]: [STDERR]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[15:38:53] [Client thread/INFO]: [STDERR]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[15:38:53] [Client thread/INFO]: [STDERR]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[15:38:53] [Client thread/INFO]: [STDERR]: at java.lang.reflect.Method.invoke(Method.java:498)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
[15:38:53] [Client thread/INFO]: [STDERR]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[15:38:53] [Client thread/INFO]: [STDERR]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[15:38:53] [Client thread/INFO]: [STDERR]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[15:38:53] [Client thread/INFO]: [STDERR]: at java.lang.reflect.Method.invoke(Method.java:498)
[15:38:53] [Client thread/INFO]: [STDERR]: at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
[15:38:53] [Client thread/INFO]: [STDERR]: at GradleStart.main(GradleStart.java:26)
private static Accessor<Map<Pair<RegistryDelegate<Item>, Integer>, ModelResourceLocation>> customModels = Accessors.findField(ModelLoader.class, "customModels");
Object map = customModels.get(null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment