compileJava Fails when Creating a Mob

Started by Matt The Banana on

Topic category: Help with modding (Java Edition)

Last seen on 00:53, 14. Mar 2024
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
compileJava Fails when Creating a Mob
Wed, 04/29/2020 - 23:45 (edited)

I am having issues compiling Java and this happened after I created a mob with MCreator and not the code editor

Here is the error log

> Task :compileJava FAILED 
C:\Users\yoyod\MCreatorWorkspaces\arthropods\src\main\java\net\mcreator\arthropods\entity\FlyEntity.java:224: error: cannot find symbol 
      public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, 
                         ^ 
  symbol:   class MatrixStack 
  location: class Modelfly 
C:\Users\yoyod\MCreatorWorkspaces\arthropods\src\main\java\net\mcreator\arthropods\entity\FlyEntity.java:224: error: cannot find symbol 
      public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, 
                                                  ^ 
  symbol:   class IVertexBuilder 
  location: class Modelfly 
2 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 
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. 
Use '--warning-mode all' to show the individual deprecation warnings. 
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings 
BUILD FAILED in 2s 
1 actionable task: 1 executed 
BUILD FAILED

Here is the code where the error is

		}

		@Override
		public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,
				float alpha) {
			body.render(matrixStack, buffer, packedLight, packedOverlay);
		}

Here is the code where the second error is

 

I'd like to say, I don't know much about Java coding so I don't really know what this means. Also, I did not touch the default code at all. The arrows are pointing at the M in MatrixStack and the I in IVertexBuilder.

I would appreciate if someone could help me fix this error and am glad to add more info.

Edited by Matt The Banana on Wed, 04/29/2020 - 23:45
Last seen on 00:53, 14. Mar 2024
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, thank you very much!
Thu, 04/30/2020 - 17:03

Oh, thank you very much!

Last seen on 00:53, 14. Mar 2024
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I was wondering how to…
Wed, 06/10/2020 - 21:10

I was wondering how to export .java files so they work for 1.14?

Last seen on 00:53, 14. Mar 2024
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind. I found it, I am…
Wed, 06/10/2020 - 21:16

Nevermind. I found it, I am just tired and need to get some sleep.