Started by
Nasakyuu
on
Topic category: Troubleshooting, bugs, and solutions
when I launch mcreator I have this error message in my workspace and it block me : your main mod file did not compile properly, and when I try to regenerate code the problem persist please help me.
Maybe the console log with help
you want the log console ?
Console contents
here the console contents :
Executing
Gradle task: build
Build
info: MCreator 2021.1.12313 EAP (12313), forge-1.16.5, 64-bit, 8077 MB,
Windows 10, JVM 1.8.0_275, JAVA_HOME:
C:\Users\turbe\Downloads\MCreatorEAP20211b12313\jdk
>
Task :compileJava
C:\Users\turbe\Desktop\Arinium\arinium_v\src\main\java\net\mcreator\arinium\AriniumMod.java:86:
error: cannot find symbol
event.getRegistry().registerAll(elements.getBiomes().stream().map(Supplier::get).toArray(Biome[]::new));
^
symbol: method getBiomes()
location: variable elements of type AriniumModElements
C:\Users\turbe\Desktop\Arinium\arinium_v\src\main\java\net\mcreator\arinium\AriniumMod.java:86:
error: invalid method reference
event.getRegistry().registerAll(elements.getBiomes().stream().map(Supplier::get).toArray(Biome[]::new));
^
non-static method get() cannot be referenced from a static context
where T is a type-variable:
T extends Object declared in interface Supplier
2
errors
>
Task :compileJava FAILED
FAILURE:
Build failed with an exception.
*
What went wrong:
Execution
failed for task ':compileJava'.
>
Compilation failed; see the compiler error output for details.
*
Try:
Run
with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output. Run with --scan to get full
insights.
*
Get more help at https://help.gradle.org
BUILD
FAILED in 1m 58s
1
actionable task: 1 executed
BUILD
FAILED
Task
completed in 2 minutes and 8 seconds
Do you have any mod elements with locked code?
I don't know what's this
How to see if there is ?