package com.arslaancodes.arslaansmagichax; import net.fabricmc.api.ClientModInitializer; import net.fabricmc.fabric.api.client.command.v2.ClientCommandRegistrationCallback; import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientLifecycleEvents; import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents; import com.arslaancodes.arslaansmagichax.modules.ModuleManager; import com.arslaancodes.arslaansmagichax.modules.impl.*; public class ArslaansMagicHaxClient implements ClientModInitializer { public static Flight flight = new Flight(); public static NoFall noFall = new NoFall(); public static Waterwalk waterwalk = new Waterwalk(); public static NoAttackCooldown noAttackCooldown = new NoAttackCooldown(); public static GhostScaffold ghostScaffold = new GhostScaffold(); public static ClickGUI clickGUI = new ClickGUI(); public static FakeSneak fakeSneak = new FakeSneak(); public static NoPackets noPackets = new NoPackets(); public static Criticals criticals = new Criticals(); public static AutoClicker autoClicker = new AutoClicker(); public static GUN gun = new GUN(); public static Spider spider = new Spider(); public static Speed speed = new Speed(); public static Fullbright fullbright = new Fullbright(); public static Jetpack jetpack = new Jetpack(); public static GravityModifier gravityModifier = new GravityModifier(); public static Xray xray = new Xray(); public static HideModulesHUD hideModulesHUD = new HideModulesHUD(); public static Poseidon poseidon = new Poseidon(); public static TickRateLock tickRateLock = new TickRateLock(); @Override public void onInitializeClient() { /*ClientCommandRegistrationCallback.EVENT.register(HackTP::register); ClientCommandRegistrationCallback.EVENT.register(ModuleToggleCommand::register); ClientCommandRegistrationCallback.EVENT.register(HackXP::register); ClientCommandRegistrationCallback.EVENT.register(HackSetblock::register); ClientCommandRegistrationCallback.EVENT.register(HackGive::register); ClientCommandRegistrationCallback.EVENT.register(CrashCommand::register); // crashes the game for the funny */ ModuleManager.INSTANCE.register(flight); ModuleManager.INSTANCE.register(noFall); ModuleManager.INSTANCE.register(waterwalk); ModuleManager.INSTANCE.register(noAttackCooldown); ModuleManager.INSTANCE.register(ghostScaffold); ModuleManager.INSTANCE.register(clickGUI); ModuleManager.INSTANCE.register(fakeSneak); ModuleManager.INSTANCE.register(noPackets); ModuleManager.INSTANCE.register(criticals); ModuleManager.INSTANCE.register(autoClicker); ModuleManager.INSTANCE.register(gun); ModuleManager.INSTANCE.register(spider); ModuleManager.INSTANCE.register(speed); ModuleManager.INSTANCE.register(fullbright); ModuleManager.INSTANCE.register(jetpack); ModuleManager.INSTANCE.register(gravityModifier); ModuleManager.INSTANCE.register(xray); ModuleManager.INSTANCE.register(hideModulesHUD); ModuleManager.INSTANCE.register(poseidon); ModuleManager.INSTANCE.register(tickRateLock); ModuleManager.INSTANCE.registerHUD(); ModuleManager.INSTANCE.loadModuleStates(); ModuleManager.INSTANCE.saveModuleStates(); // clean up garbage e.g. someone types in "obama.havedih=barapbarapba" ClientTickEvents.END_CLIENT_TICK.register(mc -> { ModuleManager.tick(); } ); ClientLifecycleEvents.CLIENT_STOPPING.register(client -> { ModuleManager.INSTANCE.close(); }); } }