So, whenever i try to gradlew build my mod, it will give an error in compileJava when a class that contains that access fields is compile, for instance:
[spoiler=code]
public class EventCaller {
@SubscribeEvent
public void onEvent(EntityInteractEvent e){
Entity et = e.target; //errors here
System.out.println(et.ticksExisted);//and here, as you can see in the log
}
}
[spoiler=log]
F:\ForgeWorkspace>gradlew build
****************************
Powered By MCP:
http://modcoderpack.com/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
MCP Data version : unknown
****************************
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
F:\ForgeWorkspace\build\sources\java\me\datdenkikniet\PixelmonToCauldron\EventCaller.java:18: error: cannot access sa
Entity et = e.target;
^
class file for sa not found
1 error
1 warning
: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.
BUILD FAILED
Total time: 13.384 secs
F:\ForgeWorkspace>
Anyone know a solution?