Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cake.java:
- package me.plankins.cake;
- import me.plankins.cake.module.ModuleManager;
- import org.lwjgl.opengl.Display;
- public class Cake {
- public static String Client_Name = "Cake-Client";
- public static Double Client_Version = 1.0;
- public static final Cake theClient = new Cake();
- public static ModuleManager moduleManager;
- public static void StartClient(){
- moduleManager = new ModuleManager();
- Display.setTitle(Client_Name + " " + Client_Version);
- }
- public static String getClient_Name() {
- return Client_Name;
- }
- public static void setClient_Name(String client_Name) {
- Client_Name = client_Name;
- }
- public static double getClient_Version() {
- return Client_Version;
- }
- public static void setClient_Version(double client_Version) {
- Client_Version = client_Version;
- }
- }
- Wrapper.java:
- package me.plankins.cake.utils;
- import net.minecraft.client.Minecraft;
- import net.minecraft.client.gui.FontRenderer;
- public class Wrapper {
- public static Minecraft mc =Minecraft.getMinecraft();
- public static FontRenderer fr = Minecraft.getMinecraft().fontRendererObj;
- }
- Category.java:
- package me.plankins.cake.module;
- public enum Category {
- COMBAT,WORLD,PLAYER,RENDER,GUI
- }
- ModuleManager.java:
- package me.plankins.cake.module;
- import java.util.ArrayList;
- import me.plankins.cake.modules.*;
- public class ModuleManager {
- public static ArrayList<Module> activeModules = new ArrayList<Module>();
- public ModuleManager() {
- this.activeModules.add(new Sprint());
- this.activeModules.add(new FullBright());
- this.activeModules.add(new KillAura());
- this.activeModules.add(new Flight());
- this.activeModules.add(new Aimbot());
- this.activeModules.add(new FastPlace());
- // this.activeModules.add(new Gui());
- // this.activeModules.add(new XRay());
- }
- public static ArrayList<Module> getModules() {
- return activeModules;
- }
- public Module getModule(Class<? extends Module> clazz) {
- for (Module mod : getModules()) {
- if (mod.getClass() == clazz) {
- return mod;
- }
- }
- return null;
- }
- }
- Module.java
- package me.plankins.cake.module;
- public class Module {
- private String name;
- private int bind;
- private Category category;
- private boolean isEnabled;
- private String act;
- public Module(String name, int bind, Category category) {
- this.name = name;
- this.bind = bind;
- this.category = category;
- }
- public String getAct() {
- return act;
- }
- public String getName() {
- return name;
- }
- public int getBind() {
- return bind;
- }
- public Category getCategory() {
- return category;
- }
- public boolean getState() {
- return isEnabled;
- }
- public void setState(boolean state) {
- this.onToggle();
- if (state) {
- this.onEnable();
- this.isEnabled = true;
- } else {
- this.onDisable();
- this.isEnabled = false;
- }
- }
- public void toggleModule() {
- this.setState(!this.getState());
- }
- public void onToggle() {
- }
- public void onEnable() {
- }
- public void onDisable() {
- }
- public void onUpdate() {
- }
- public void onRender() {
- }
- public final boolean isCategory(Category s) {
- if (s == category)
- return true;
- return false;
- }
- }
- GuiIngameHook.java:
- package me.plankins.cake.ui;
- import me.plankins.cake.Cake;
- import me.plankins.cake.module.Module;
- import me.plankins.cake.utils.Wrapper;
- import net.minecraft.client.Minecraft;
- import net.minecraft.client.gui.GuiIngame;
- public class GuiIngameHook extends GuiIngame {
- public GuiIngameHook(Minecraft mcIn) {
- super(mcIn);
- }
- public void func_175180_a(float p_175180_1_){
- super.func_175180_a(p_175180_1_);
- Wrapper.fr.drawString(Cake.Client_Name + " " + Cake.Client_Version, 1, 1, 0xffffffff);
- renderArrayList();
- }
- private void renderArrayList() {
- int yCount = 13;
- for(Module m : Cake.theClient.moduleManager.activeModules){
- m.onRender();
- Wrapper.fr.drawString(m.getName() + " " + "[" + m.getState() + "]", 3, yCount, 0x58FAF4);
- yCount += 13;
- }
- }
- }
- Dann hab ich auch noch die Module. Also z.b. Sprint, FastPlace usw.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement