Hello everyone!
Today I'm giving out my client base.
Q: How do I add this to MCP?
A: Just decompile vanilla minecrat as usual and when you are done, replace the src folder with this one.
Q: Does this have optifine?
A: Yup
Q: So what exactly is this?
A: This is a client base for those who want something to start with. It has 3 main packages, com.example, com.example.gui, com.example.hacks.
Q: How do I add keybinds?
A: Keybinds are handled in Keys.java. There is a void for each key on the keyboard in that file. All you have to to is add code into the void, such as Boolean = !Boolean, or a more sophisticated method if you wish.
Q: How do I make a GUI using this?
A: In the file ExampleGui there's two voids where you can put your GUI code.
Q: How should I add hacks?
A: The best way would to make each hack a separate file in the package com.example.hacks. This way, you can find all your hacks easily.
Q: You didn't explain much.
A: The source is commented to help users. The base is run off of Loader.java. Look in there and see what it calls and such and you should be able to chipped how it works by yourself.
---com.example
CheckKeys: No modification required. The generic checkkeys that handle which keys are pressed
ClientHandler: This calls the Gui and HackHandler files. Essentially, runs the client
HackHandler: A class which you put in your calling methods for the files you put in com.relapse.hacks
Keys: A class which has a void for each key on the keyboard. Place toggle statements and such in here
Loader: The class which is called from Minecraft.class. Controls the client in essence.
Variables: The file which you can put your variables, objects, strings, and booleans.
---com.example.gui
Arraylist: A class which you put displays a arraylist of enabled hacks. You need to add the code for this class, but an example is given
ExampleGui: The class which you place your GuiCode in. Two separate voids for text and GuiMethods.
Util: class containing GuiMethods. If you want more methods, use google. There are plenty out there
---com.example.hacks
ExampleHack: A basic file with one void. Kind of a example of what hack files should be set up like, however you do not have to follow the example given.