[solved]mixins.common.api.json:item.merchant.MixinMerchant: func_70932_a_ does not exist in target interface net.minecraft.entity.IMerchant


#1

[FR]
Bonjour,
J’utilise eclipse et j’ai toujours cette erreur:

[22:38:08] [main/ERROR]: mixins.common.api.json:item.merchant.MixinMerchant: func_70932_a_ does not exist in target interface net.minecraft.entity.IMerchant
org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException: func_70932_a_ does not exist in target interface net.minecraft.entity.IMerchant
at org.spongepowered.asm.mixin.transformer.InterfaceInfo.renameMethod(InterfaceInfo.java:188) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.prepareSoftImplements(MixinPreProcessorStandard.java:205) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.prepareMethod(MixinPreProcessorStandard.java:186) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorInterface.prepareMethod(MixinPreProcessorInterface.java:65) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.prepare(MixinPreProcessorStandard.java:173) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinInfo$State.validateChanges(MixinInfo.java:404) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinInfo$State.validate(MixinInfo.java:306) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinInfo.validate(MixinInfo.java:827) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinConfig.postInitialise(MixinConfig.java:528) [bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinTransformer.prepareConfigs(MixinTransformer.java:675) [bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinTransformer.select(MixinTransformer.java:572) [bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinTransformer.checkSelect(MixinTransformer.java:548) [bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:451) [bin/:?]
at org.spongepowered.asm.mixin.transformer.Proxy.transform(Proxy.java:72) [bin/:?]
at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) [launchwrapper-1.12.jar:?]
at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.8.0_181]
at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.8.0_181]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_181]
at java.lang.Class.forName(Unknown Source) [?:1.8.0_181]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:131) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
at GradleStartServer.main(GradleStartServer.java:10) [start/:?]

Si j’enlève la ligne “item.merchant.MixinMerchant”, dans le fichier “.\SpongeVanilla\SpongeCommon\SpongeAPI\build\classes\test\mixins.common.api.json” j’ai plus d’erreur. Comment je peux corriger cela ?

[Google trad]
Hello,
I use eclipse and I always have this error:

[22:38:08] [main/ERROR]: mixins.common.api.json:item.merchant.MixinMerchant: func_70932_a_ does not exist in target interface net.minecraft.entity.IMerchant
org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException: func_70932_a_ does not exist in target interface net.minecraft.entity.IMerchant
at org.spongepowered.asm.mixin.transformer.InterfaceInfo.renameMethod(InterfaceInfo.java:188) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.prepareSoftImplements(MixinPreProcessorStandard.java:205) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.prepareMethod(MixinPreProcessorStandard.java:186) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorInterface.prepareMethod(MixinPreProcessorInterface.java:65) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.prepare(MixinPreProcessorStandard.java:173) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinInfo$State.validateChanges(MixinInfo.java:404) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinInfo$State.validate(MixinInfo.java:306) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinInfo.validate(MixinInfo.java:827) ~[bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinConfig.postInitialise(MixinConfig.java:528) [bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinTransformer.prepareConfigs(MixinTransformer.java:675) [bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinTransformer.select(MixinTransformer.java:572) [bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinTransformer.checkSelect(MixinTransformer.java:548) [bin/:?]
at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:451) [bin/:?]
at org.spongepowered.asm.mixin.transformer.Proxy.transform(Proxy.java:72) [bin/:?]
at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) [launchwrapper-1.12.jar:?]
at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.8.0_181]
at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.8.0_181]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_181]
at java.lang.Class.forName(Unknown Source) [?:1.8.0_181]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:131) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
at GradleStartServer.main(GradleStartServer.java:10) [start/:?]

If I remove the line “item.merchant.MixinMerchant”, in the file “.\SpongeVanilla\SpongeCommon\SpongeAPI\build\classes\test\mixins.common.api.json” I have more error. How can I fix that?


#2

This error is caused by a Mixin bug with de-obfuscating a production Sponge jar.

How are you trying to import SpongeForge into Eclipse?


#4

[FR]
J’ai voulu tester IntelliJ et plus d’erreur sauf “GradleStartServer” qui est en rouge, mais le serveur démarre.
Comment ajouter mon plugin ?

[Google trad]
I wanted to test IntelliJ and more error except “GradleStartServer” which is in red, but the server starts.
How to add my plugin?


.