[Solved] A issue with Java models?

Started by Cinderblocks on

Topic category: Help with MCreator software

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Solved] A issue with Java models?
Sun, 06/11/2023 - 15:15 (edited)

For some reason, after updating to the highest version of Mcreator, any java entity crashes while building the mod. I can't figure out why, and I have the highest version of Java as well.

C:\Users\Name\MCreatorWorkspaces\stiesel\src\main\java\net\mcreator\stiesel\init\StieselModEntityRenderers.java:18: error: method registerEntityRenderer in class RegisterRenderers cannot be applied to given types; event.registerEntityRenderer(StieselModEntities.BATTLE_CRAB.get(), BattleCrabRenderer::new);
^
required: EntityType<? extends T>,EntityRendererProvider<T>
found: EntityType<BattleCrabEntity>,BattleCrab[...]::new
reason: cannot infer type-variable(s) T
(argument mismatch; bad return type in method reference
BattleCrabRenderer cannot be converted to EntityRenderer<T>)
where T is a type-variable:
T extends Entity declared in method <T>registerEntityRenderer(EntityType<? extends T>,EntityRendererProvider<T>)
47 errors
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 2s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 4 seconds

[A sample of the error message, to large to post the whole thing]

Edited by Cinderblocks on Sun, 06/11/2023 - 15:15
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks for responding, but I…
Sun, 06/11/2023 - 15:14

Thanks for responding, but I just barely found the problem.

The issue was that when I updated from 2023.1 to 2023.2, it disabled the plugins I was using, and one of those changed Java entities in a way that the mod wouldn't build properly without it.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But thank you anyway  
Sun, 06/11/2023 - 15:15

But thank you anyway