So how would I call it? Sorry again, I just don't really understand :/ I find example easier to follow, so an example would be great
Okay. So say you have a method foo() in class bar
public class bar
{
public static void foo()
{
System.out.println("foo");
}
}
To call foo(), you would type bar.foo().
Then Java will go find the class bar in your package then run the method foo() that is in it. If you are calling a method from inside it's class replace the class with the word "this", e.g this.foo().
Rollback Post to RevisionRollBack
Please don't PM me asking for help, I will just redirect you to the appropriate forum, where there are others who are far more skilled than me.
@Override Block#updateTick() and put this.findZombies() inside it. Also I recommend that you go and look up a Java basics tutorial, you understand some concepts, but you are missing some crucial concepts.
To call a method means to make the method run the code inside it. findZombies() is a method.
Tip, use the reply link under a post to reply to that post, then the poster will get a notification.
Please don't PM me asking for help, I will just redirect you to the appropriate forum, where there are others who are far more skilled than me.
This is not the signature you are looking for.
Banners and such things
.
GENERATION 1: The first time you see this, copy it into your signature on any forum and subtract 1 from the generation. Social experiment.
Lol. Lolol. LoloLOL. LOLOLOLOLOLOLOLOLOLOLO- *clears throat*.
So how would I call it? Sorry again, I just don't really understand :/ I find example easier to follow, so an example would be great
GENERATION 1: The first time you see this, copy it into your signature on any forum and subtract 1 from the generation. Social experiment.
Lol. Lolol. LoloLOL. LOLOLOLOLOLOLOLOLOLOLO- *clears throat*.
Okay. So say you have a method foo() in class bar
To call foo(), you would type bar.foo().
Then Java will go find the class bar in your package then run the method foo() that is in it. If you are calling a method from inside it's class replace the class with the word "this", e.g this.foo().
Please don't PM me asking for help, I will just redirect you to the appropriate forum, where there are others who are far more skilled than me.
This is not the signature you are looking for.
Banners and such things
So how would I call findZombies() in the method and have it work?
Thanks so much for your help so far
GENERATION 1: The first time you see this, copy it into your signature on any forum and subtract 1 from the generation. Social experiment.
Lol. Lolol. LoloLOL. LOLOLOLOLOLOLOLOLOLOLO- *clears throat*.
@Override Block#updateTick() and put this.findZombies() inside it. Also I recommend that you go and look up a Java basics tutorial, you understand some concepts, but you are missing some crucial concepts.
Please don't PM me asking for help, I will just redirect you to the appropriate forum, where there are others who are far more skilled than me.
This is not the signature you are looking for.
Banners and such things