Credit TO:-
Team Precision |
This is going to be a real quick simple tutorial for organization for your minecraft hacks
Step 1: Packages
Create packages to organize class files instead of putting everything inside net.minecraft.src
Example:
ClientName.Gui would hold your GUI related files.
ClientName.Main would hold your methods class (explained later) and your variables class.
ClientName.Hacks would hold all your separate hack class, this part is optional and depends if you have such class files.
Step 2: Class Files
Organizing class files can be VERY helpful in situations were to have LOTS of code to deal with, my suggestion is putting 3 lines of space between each section of code, and on the middle line put "// TitleOfCodeBelow"
Example:
// Example
if(Example) {
doYo'Stuff();
}
Step 3: Methods Class
This is probably the most important thing in organization.
A methods class is used to store all your methods, instead of putting them in places like Gui.java and FontRenderer.java, making it easier to find a edit.
That concludes this 3 step tutorial, I hope this helps people so they don't waste precious time of there life's looking for code. YOLO
Step 1: Packages
Create packages to organize class files instead of putting everything inside net.minecraft.src
Example:
ClientName.Gui would hold your GUI related files.
ClientName.Main would hold your methods class (explained later) and your variables class.
ClientName.Hacks would hold all your separate hack class, this part is optional and depends if you have such class files.
Step 2: Class Files
Organizing class files can be VERY helpful in situations were to have LOTS of code to deal with, my suggestion is putting 3 lines of space between each section of code, and on the middle line put "// TitleOfCodeBelow"
Example:
// Example
if(Example) {
doYo'Stuff();
}
Step 3: Methods Class
This is probably the most important thing in organization.
A methods class is used to store all your methods, instead of putting them in places like Gui.java and FontRenderer.java, making it easier to find a edit.
That concludes this 3 step tutorial, I hope this helps people so they don't waste precious time of there life's looking for code. YOLO
No comments:
Post a Comment