On the file at the top i imported the other java file (EntityGrenade):
import net.minecraft.src.EntityGrenade;
That is in the ItemDet file.
I also have this in the same file in a method called onRightClick:
EntityGrenade.explode();
There i am trying to run the method, explode.
On the EntityGrenade File, the explode method says:
public void explode()
{
worldObj.createExplosion(null, posX, posY, posZ, 2F);
}
that is the code i am trying to run. When i compile it i get the error
ItemDetonator.java:21: non-static method explode cannot be referenced from a staic context EntityGrenade.explode();
Then there is a little arrow under the "."
Can someone please please please tell me how to fix this? im soo confused and dont know why its happening. Thanks!

New Topic/Question
This topic is locked




MultiQuote









|