Search in sources :

Example 1 with Modules

use of meteordevelopment.meteorclient.systems.modules.Modules in project meteor-rejects by AntiCope.

the class MeteorRejectsAddon method onInitialize.

@Override
public void onInitialize() {
    LOG.info("Initializing Meteor Rejects Addon");
    MeteorClient.EVENT_BUS.registerLambdaFactory("anticope.rejects", (lookupInMethod, klass) -> (MethodHandles.Lookup) lookupInMethod.invoke(null, klass, MethodHandles.lookup()));
    RejectsUtils.init();
    GiveUtils.init();
    // Modules
    Modules modules = Modules.get();
    modules.add(new AntiBot());
    modules.add(new AntiSpawnpoint());
    modules.add(new AntiVanish());
    modules.add(new Auto32K());
    modules.add(new AutoBedTrap());
    modules.add(new AutoCraft());
    modules.add(new AutoExtinguish());
    modules.add(new AutoPot());
    modules.add(new AutoTNT());
    modules.add(new AutoWither());
    modules.add(new BoatGlitch());
    modules.add(new BlockIn());
    modules.add(new BoatPhase());
    modules.add(new Boost());
    modules.add(new ChatBot());
    modules.add(new ColorSigns());
    modules.add(new Confuse());
    modules.add(new CoordLogger());
    modules.add(new CustomPackets());
    modules.add(new GhostMode());
    modules.add(new InteractionMenu());
    modules.add(new Lavacast());
    modules.add(new NewChunks());
    modules.add(new ObsidianFarm());
    modules.add(new OreSim());
    modules.add(new PacketFly());
    modules.add(new Painter());
    modules.add(new Prone());
    modules.add(new Rendering());
    modules.add(new SkeletonESP());
    modules.add(new SoundLocator());
    // Module modifications
    NoRenderModifier.init();
    // Commands
    Commands commands = Commands.get();
    commands.add(new CenterCommand());
    commands.add(new ClearChatCommand());
    commands.add(new GhostCommand());
    commands.add(new GiveCommand());
    commands.add(new SaveSkinCommand());
    commands.add(new SeedCommand());
    commands.add(new HeadsCommand());
    commands.add(new KickCommand());
    // commands.add(new LocateCommand());   I wish it was that simple -_-
    commands.add(new ServerCommand());
    commands.add(new PanicCommand());
    commands.add(new SetBlockCommand());
    commands.add(new SetVelocityCommand());
    commands.add(new TeleportCommand());
    commands.add(new TerrainExport());
    // HUD
    HUD hud = Systems.get(HUD.class);
    hud.elements.add(new BaritoneHud(hud));
    // Themes
    GuiThemes.add(new MeteorRoundedGuiTheme());
}
Also used : Modules(meteordevelopment.meteorclient.systems.modules.Modules) MethodHandles(java.lang.invoke.MethodHandles) MeteorRoundedGuiTheme(anticope.rejects.gui.themes.rounded.MeteorRoundedGuiTheme) HUD(meteordevelopment.meteorclient.systems.hud.HUD) Commands(meteordevelopment.meteorclient.systems.commands.Commands)

Example 2 with Modules

use of meteordevelopment.meteorclient.systems.modules.Modules in project tanuki by AntiCope.

the class Tanuki method onInitialize.

@Override
public void onInitialize() {
    LOG.info("Initializing Tanuki");
    // Required when using @EventHandler
    MeteorClient.EVENT_BUS.registerLambdaFactory("anticope.tanuki", (lookupInMethod, klass) -> (MethodHandles.Lookup) lookupInMethod.invoke(null, klass, MethodHandles.lookup()));
    Modules modules = Modules.get();
    modules.add(new AntiCrystal());
    modules.add(new AntiCrystalPhase());
    modules.add(new AutoGriffer());
    modules.add(new BedrockWalk());
    modules.add(new Confetti());
    modules.add(new FuckedDetector());
    modules.add(new PauseOnUnloaded());
    modules.add(new TanukiPacketFly());
    HUD hud = Systems.get(HUD.class);
    hud.elements.add(new ProfileHud(hud));
}
Also used : MethodHandles(java.lang.invoke.MethodHandles) Modules(meteordevelopment.meteorclient.systems.modules.Modules) HUD(meteordevelopment.meteorclient.systems.hud.HUD)

Example 3 with Modules

use of meteordevelopment.meteorclient.systems.modules.Modules in project orion by AntiCope.

the class VisualBinds method updateBinds.

private void updateBinds() {
    binds.clear();
    List<Module> modules = Modules.get().getAll().stream().filter(module -> module.keybind.isSet()).collect(Collectors.toList());
    for (Module module : modules) binds.add(module.title + ": [" + module.keybind.toString() + "]");
    if (sortMode.get().equals(SortMode.Shortest)) {
        binds.sort(Comparator.comparing(String::length));
    } else {
        binds.sort(Comparator.comparing(String::length).reversed());
    }
}
Also used : HUD(meteordevelopment.meteorclient.systems.hud.HUD) Setting(meteordevelopment.meteorclient.settings.Setting) List(java.util.List) Module(meteordevelopment.meteorclient.systems.modules.Module) HudElement(meteordevelopment.meteorclient.systems.hud.modules.HudElement) Modules(meteordevelopment.meteorclient.systems.modules.Modules) EnumSetting(meteordevelopment.meteorclient.settings.EnumSetting) SettingGroup(meteordevelopment.meteorclient.settings.SettingGroup) HudRenderer(meteordevelopment.meteorclient.systems.hud.HudRenderer) Comparator(java.util.Comparator) Collectors(java.util.stream.Collectors) ArrayList(java.util.ArrayList) Module(meteordevelopment.meteorclient.systems.modules.Module)

Example 4 with Modules

use of meteordevelopment.meteorclient.systems.modules.Modules in project meteor-client by MeteorDevelopment.

the class ResetCommand method build.

@Override
public void build(LiteralArgumentBuilder<CommandSource> builder) {
    builder.then(literal("settings").then(argument("module", ModuleArgumentType.module()).executes(context -> {
        Module module = context.getArgument("module", Module.class);
        module.settings.forEach(group -> group.forEach(Setting::reset));
        module.info("Reset all settings.");
        return SINGLE_SUCCESS;
    })).then(literal("all").executes(context -> {
        Modules.get().getAll().forEach(module -> module.settings.forEach(group -> group.forEach(Setting::reset)));
        ChatUtils.info("Modules", "Reset all module settings");
        return SINGLE_SUCCESS;
    }))).then(literal("gui").executes(context -> {
        GuiThemes.get().clearWindowConfigs();
        ChatUtils.info("Reset GUI positioning.");
        return SINGLE_SUCCESS;
    })).then(literal("bind").then(argument("module", ModuleArgumentType.module()).executes(context -> {
        Module module = context.getArgument("module", Module.class);
        module.keybind.set(true, -1);
        module.info("Reset bind.");
        return SINGLE_SUCCESS;
    })).then(literal("all").executes(context -> {
        Modules.get().getAll().forEach(module -> module.keybind.set(true, -1));
        ChatUtils.info("Modules", "Reset all binds.");
        return SINGLE_SUCCESS;
    }))).then(literal("hud").executes(context -> {
        Systems.get(HUD.class).reset.run();
        ChatUtils.info("HUD", "Reset all elements.");
        return SINGLE_SUCCESS;
    }));
}
Also used : Systems(meteordevelopment.meteorclient.systems.Systems) HUD(meteordevelopment.meteorclient.systems.hud.HUD) CommandSource(net.minecraft.command.CommandSource) SINGLE_SUCCESS(com.mojang.brigadier.Command.SINGLE_SUCCESS) Setting(meteordevelopment.meteorclient.settings.Setting) Command(meteordevelopment.meteorclient.systems.commands.Command) Module(meteordevelopment.meteorclient.systems.modules.Module) Modules(meteordevelopment.meteorclient.systems.modules.Modules) ChatUtils(meteordevelopment.meteorclient.utils.player.ChatUtils) GuiThemes(meteordevelopment.meteorclient.gui.GuiThemes) LiteralArgumentBuilder(com.mojang.brigadier.builder.LiteralArgumentBuilder) ModuleArgumentType(meteordevelopment.meteorclient.systems.commands.arguments.ModuleArgumentType) HUD(meteordevelopment.meteorclient.systems.hud.HUD) Module(meteordevelopment.meteorclient.systems.modules.Module)

Example 5 with Modules

use of meteordevelopment.meteorclient.systems.modules.Modules in project meteor-client by MeteorDevelopment.

the class BindsCommand method build.

@Override
public void build(LiteralArgumentBuilder<CommandSource> builder) {
    builder.executes(context -> {
        // Modules
        List<Module> modules = Modules.get().getAll().stream().filter(module -> module.keybind.isSet()).collect(Collectors.toList());
        ChatUtils.info("--- Bound Modules ((highlight)%d(default)) ---", modules.size());
        for (Module module : modules) {
            HoverEvent hoverEvent = new HoverEvent(HoverEvent.Action.SHOW_TEXT, getTooltip(module));
            MutableText text = new LiteralText(module.title).formatted(Formatting.WHITE);
            text.setStyle(text.getStyle().withHoverEvent(hoverEvent));
            MutableText sep = new LiteralText(" - ");
            sep.setStyle(sep.getStyle().withHoverEvent(hoverEvent));
            text.append(sep.formatted(Formatting.GRAY));
            MutableText key = new LiteralText(module.keybind.toString());
            key.setStyle(key.getStyle().withHoverEvent(hoverEvent));
            text.append(key.formatted(Formatting.GRAY));
            ChatUtils.sendMsg(text);
        }
        return SINGLE_SUCCESS;
    });
}
Also used : LiteralText(net.minecraft.text.LiteralText) HoverEvent(net.minecraft.text.HoverEvent) Collectors(java.util.stream.Collectors) LiteralArgumentBuilder(com.mojang.brigadier.builder.LiteralArgumentBuilder) CommandSource(net.minecraft.command.CommandSource) SINGLE_SUCCESS(com.mojang.brigadier.Command.SINGLE_SUCCESS) Formatting(net.minecraft.util.Formatting) List(java.util.List) Command(meteordevelopment.meteorclient.systems.commands.Command) Module(meteordevelopment.meteorclient.systems.modules.Module) Modules(meteordevelopment.meteorclient.systems.modules.Modules) MutableText(net.minecraft.text.MutableText) ChatUtils(meteordevelopment.meteorclient.utils.player.ChatUtils) Utils(meteordevelopment.meteorclient.utils.Utils) MutableText(net.minecraft.text.MutableText) HoverEvent(net.minecraft.text.HoverEvent) Module(meteordevelopment.meteorclient.systems.modules.Module) LiteralText(net.minecraft.text.LiteralText)

Aggregations

Modules (meteordevelopment.meteorclient.systems.modules.Modules)6 HUD (meteordevelopment.meteorclient.systems.hud.HUD)5 Module (meteordevelopment.meteorclient.systems.modules.Module)3 SINGLE_SUCCESS (com.mojang.brigadier.Command.SINGLE_SUCCESS)2 LiteralArgumentBuilder (com.mojang.brigadier.builder.LiteralArgumentBuilder)2 MethodHandles (java.lang.invoke.MethodHandles)2 List (java.util.List)2 Collectors (java.util.stream.Collectors)2 Setting (meteordevelopment.meteorclient.settings.Setting)2 Command (meteordevelopment.meteorclient.systems.commands.Command)2 Commands (meteordevelopment.meteorclient.systems.commands.Commands)2 ChatUtils (meteordevelopment.meteorclient.utils.player.ChatUtils)2 CommandSource (net.minecraft.command.CommandSource)2 MeteorRoundedGuiTheme (anticope.rejects.gui.themes.rounded.MeteorRoundedGuiTheme)1 ArrayList (java.util.ArrayList)1 Comparator (java.util.Comparator)1 GuiThemes (meteordevelopment.meteorclient.gui.GuiThemes)1 EnumSetting (meteordevelopment.meteorclient.settings.EnumSetting)1 SettingGroup (meteordevelopment.meteorclient.settings.SettingGroup)1 Systems (meteordevelopment.meteorclient.systems.Systems)1