Error when recompiling mod

Started by Grungus on Thu, 07/21/2016 - 14:19

Topic category: Help with MCreator's application

Last seen on 15:07, 23. Jul 2016
Joined Jul 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Error when recompiling mod
Thu, 07/21/2016 - 14:19

warning: [options] bootstrap class path not set in conjunction with -source 1.6
C:\Users\User\Desktop\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_lamprey.java:108: error: cannot find symbol
            this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityEntityPlayer.class, true));
                                                                                  ^
  symbol:   class EntityEntityPlayer
  location: class Entitylamprey
C:\Users\User\Desktop\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_lamprey.java:109: error: incompatible types: Entitylamprey cannot be converted to EntityCreature
            this.targetTasks.addTask(4, new EntityAIHurtByTarget(this, false));
                                                                 ^
C:\Users\User\Desktop\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_lamprey.java:112: error: incompatible types: Entitylamprey cannot be converted to EntityCreature
            this.tasks.addTask(1, new EntityAIWander(this, 0.8D));
                                                     ^
Note: C:\Users\User\Desktop\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_lamprey.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
3 errors
1 warning

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.

 

Last seen on 15:07, 23. Jul 2016
Joined Jul 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Fixed 2 of the errors but
Thu, 07/21/2016 - 18:31

Fixed 2 of the errors but theres still one left.


warning: [options] bootstrap class path not set in conjunction with -source 1.6
C:\Users\User\Desktop\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_lamprey.java:108: error: cannot find symbol
            this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityEntityPlayer.class, true));
                                                                                  ^
  symbol:   class EntityEntityPlayer
  location: class Entitylamprey
Note: C:\Users\User\Desktop\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_lamprey.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
1 warning

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.