onItemRightClick gets called two times, on server and on client side. I guess you want it to be only shown on client side, so use the world object to find out on which side you are
The Problem is that this tutorial is not covering The thread safety aspect in 1.8 , TGG has some informations about that, just Google thegreyghost thread safety Minecraft
The thing is that this forum is not made to spoon feed you. I have no Problem helping people, but I got a Problem spoon feeding people that have obviously no idea how Java works.
Coding Minecraft can be really challenging and is not meant to learn Java.
Sorry for that.
If you just want to execute things delayed there is a method in The Minecraft routine where you can pass a runnable Object and a number that stands for The amount of ticks The task should be delayed. Could be in The MinecraftServer class, I think ernio might know what im talking about.. (Maybe just search your IDE for it since im on my mobile)
http://docs.oracle.com/javase/7/docs/api/java/util/ConcurrentModificationException.html
Seems like you are accessing The resources of another thread (even if I dont know where)
I guess you are in 1.8 , you should know that MC 1.8 is not thread safe
add this to ur build.gradle and use deobfJar
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'deobf'
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
Thats where static comes into play. It means that every instance is sharing this attribute (in this case the class), which means that u can access it without instance, because its the same for every instance
that has nothing to do wiht minecraft, its general java. if u have a nested class u need an instance of the nesting class to instatiate it (except of its static)
Also you should replace your slot for The Ashe with a slot that is preventing a player from placing stuff in there, and maybe replace your fuel slot with a slot that only allows fuel input