Wuppy’s Minecraft Forge Modding Tutorials for 1.7: Eclipse Tricks: Navigation

In this tutorial I will show you how to quickly navigate through Eclipse.

Sometimes when you are writing pieces of code you want to compare it to already existing code. For example you are looking for a method in the Block file, but you don’t know exactly how it’s called. What you could do is open up the right folder and then open up the Block folder to read through it. What you should be doing is Ctrl clicking on the name Block somewhere in the file you are. If you are coding a Block file it will extend Block so you can easily find it there, but it also works if you simply write Block somewhere and Ctrl click that. This also works with variables and methods.

Another thing you may want to do is see where in Minecraft a certain method is used and how they use it. To do that make sure your cursor location is on a method. Then right click and select References and then Workspace. This will open up a new window at the bottom, right next to the console where you can see in which files that method is used. This also works on variables and classes.

 

For a more detailed explanation and much more, check out my book Sams Teach Yourself Mod Development for Minecraft in 24 Hours.

STY Minecraft Mod Development Book

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">