package net.justlearning.arslaan3102.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 net.justlearning.arslaan3102.arslaansmagichax.commands.*; import net.justlearning.arslaan3102.arslaansmagichax.modules.ModuleManager; import net.justlearning.arslaan3102.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(); @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.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(); }); } }