Search in sources :

Example 16 with SINGLE_SUCCESS

use of com.mojang.brigadier.Command.SINGLE_SUCCESS in project meteor-client by MeteorDevelopment.

the class EnchantCommand method build.

@Override
public void build(LiteralArgumentBuilder<CommandSource> builder) {
    builder.then(literal("one").then(argument("enchantment", EnchantmentArgumentType.enchantment()).then(literal("level").then(argument("level", IntegerArgumentType.integer()).executes(context -> {
        one(context, enchantment -> context.getArgument("level", Integer.class));
        return SINGLE_SUCCESS;
    }))).then(literal("max").executes(context -> {
        one(context, Enchantment::getMaxLevel);
        return SINGLE_SUCCESS;
    }))));
    builder.then(literal("all_possible").then(literal("level").then(argument("level", IntegerArgumentType.integer()).executes(context -> {
        all(true, enchantment -> context.getArgument("level", Integer.class));
        return SINGLE_SUCCESS;
    }))).then(literal("max").executes(context -> {
        all(true, Enchantment::getMaxLevel);
        return SINGLE_SUCCESS;
    })));
    builder.then(literal("all").then(literal("level").then(argument("level", IntegerArgumentType.integer()).executes(context -> {
        all(false, enchantment -> context.getArgument("level", Integer.class));
        return SINGLE_SUCCESS;
    }))).then(literal("max").executes(context -> {
        all(false, Enchantment::getMaxLevel);
        return SINGLE_SUCCESS;
    })));
    builder.then(literal("clear").executes(context -> {
        ItemStack itemStack = tryGetItemStack();
        Utils.clearEnchantments(itemStack);
        syncItem();
        return SINGLE_SUCCESS;
    }));
    builder.then(literal("remove").then(argument("enchantment", EnchantmentArgumentType.enchantment()).executes(context -> {
        ItemStack itemStack = tryGetItemStack();
        Utils.removeEnchantment(itemStack, context.getArgument("enchantment", Enchantment.class));
        syncItem();
        return SINGLE_SUCCESS;
    })));
}
Also used : LiteralText(net.minecraft.text.LiteralText) InventoryScreen(net.minecraft.client.gui.screen.ingame.InventoryScreen) Enchantment(net.minecraft.enchantment.Enchantment) CommandContext(com.mojang.brigadier.context.CommandContext) Function(java.util.function.Function) LiteralArgumentBuilder(com.mojang.brigadier.builder.LiteralArgumentBuilder) SimpleCommandExceptionType(com.mojang.brigadier.exceptions.SimpleCommandExceptionType) Registry(net.minecraft.util.registry.Registry) CommandSource(net.minecraft.command.CommandSource) SINGLE_SUCCESS(com.mojang.brigadier.Command.SINGLE_SUCCESS) ItemStack(net.minecraft.item.ItemStack) Command(meteordevelopment.meteorclient.systems.commands.Command) EnchantmentArgumentType(net.minecraft.command.argument.EnchantmentArgumentType) IntegerArgumentType(com.mojang.brigadier.arguments.IntegerArgumentType) CommandSyntaxException(com.mojang.brigadier.exceptions.CommandSyntaxException) Utils(meteordevelopment.meteorclient.utils.Utils) Enchantment(net.minecraft.enchantment.Enchantment) ItemStack(net.minecraft.item.ItemStack)

Example 17 with SINGLE_SUCCESS

use of com.mojang.brigadier.Command.SINGLE_SUCCESS in project meteor-client by MeteorDevelopment.

the class FriendsCommand method build.

@Override
public void build(LiteralArgumentBuilder<CommandSource> builder) {
    builder.then(literal("add").then(argument("friend", FriendArgumentType.friend()).executes(context -> {
        Friend friend = FriendArgumentType.getFriend(context, "friend");
        if (Friends.get().add(friend))
            info("Added (highlight)%s (default)to friends.", friend.name);
        else
            error("That person is already your friend.");
        return SINGLE_SUCCESS;
    })));
    builder.then(literal("remove").then(argument("friend", FriendArgumentType.friend()).executes(context -> {
        Friend friend = FriendArgumentType.getFriend(context, "friend");
        if (Friends.get().remove(friend))
            info("Removed (highlight)%s (default)from friends.", friend.name);
        else
            error("That person is not your friend.");
        return SINGLE_SUCCESS;
    })));
    builder.then(literal("list").executes(context -> {
        info("--- Friends ((highlight)%s(default)) ---", Friends.get().count());
        Friends.get().forEach(friend -> ChatUtils.info("(highlight)" + friend.name));
        return SINGLE_SUCCESS;
    }));
}
Also used : Arrays(java.util.Arrays) Suggestions(com.mojang.brigadier.suggestion.Suggestions) CommandContext(com.mojang.brigadier.context.CommandContext) Collection(java.util.Collection) CompletableFuture(java.util.concurrent.CompletableFuture) ArgumentType(com.mojang.brigadier.arguments.ArgumentType) Collectors(java.util.stream.Collectors) LiteralArgumentBuilder(com.mojang.brigadier.builder.LiteralArgumentBuilder) CommandSource(net.minecraft.command.CommandSource) SINGLE_SUCCESS(com.mojang.brigadier.Command.SINGLE_SUCCESS) Friends(meteordevelopment.meteorclient.systems.friends.Friends) Command(meteordevelopment.meteorclient.systems.commands.Command) CommandSource.suggestMatching(net.minecraft.command.CommandSource.suggestMatching) Friend(meteordevelopment.meteorclient.systems.friends.Friend) ChatUtils(meteordevelopment.meteorclient.utils.player.ChatUtils) StringReader(com.mojang.brigadier.StringReader) CommandSyntaxException(com.mojang.brigadier.exceptions.CommandSyntaxException) SuggestionsBuilder(com.mojang.brigadier.suggestion.SuggestionsBuilder) Friend(meteordevelopment.meteorclient.systems.friends.Friend)

Example 18 with SINGLE_SUCCESS

use of com.mojang.brigadier.Command.SINGLE_SUCCESS in project Client by MatHax.

the class LocateCommand method build.

@Override
public void build(LiteralArgumentBuilder<CommandSource> builder) {
    builder.then(literal("buried_treasure").executes(s -> {
        ItemStack stack = mc.player.getInventory().getMainHandStack();
        if (stack.getItem() != Items.FILLED_MAP) {
            error("You need to hold a treasure map first");
            return SINGLE_SUCCESS;
        }
        NbtCompound tag = stack.getNbt();
        NbtList nbt1 = (NbtList) tag.get("Decorations");
        if (nbt1 == null) {
            error("Couldn't locate the cross. Are you holding a (highlight)treasure map(default)?");
            return SINGLE_SUCCESS;
        }
        NbtCompound iconNBT = nbt1.getCompound(0);
        if (iconNBT == null) {
            error("Couldn't locate the cross. Are you holding a (highlight)treasure map(default)?");
            return SINGLE_SUCCESS;
        }
        Vec3d coords = new Vec3d(iconNBT.getDouble("x"), iconNBT.getDouble("y"), iconNBT.getDouble("z"));
        BaseText text = new LiteralText("Buried Treasure located at ");
        text.append(ChatUtils.formatCoords(coords));
        text.append(".");
        info(text);
        return SINGLE_SUCCESS;
    }));
    builder.then(literal("lodestone").executes(s -> {
        ItemStack stack = mc.player.getInventory().getMainHandStack();
        if (stack.getItem() != Items.COMPASS) {
            error("You need to hold a lodestone compass");
            return SINGLE_SUCCESS;
        }
        NbtCompound tag = stack.getNbt();
        if (tag == null) {
            error("Couldn't get the NBT data. Are you holding a (highlight)lodestone(default) compass?");
            return SINGLE_SUCCESS;
        }
        NbtCompound nbt1 = tag.getCompound("LodestonePos");
        if (nbt1 == null) {
            error("Couldn't get the NBT data. Are you holding a (highlight)lodestone(default) compass?");
            return SINGLE_SUCCESS;
        }
        Vec3d coords = new Vec3d(nbt1.getDouble("X"), nbt1.getDouble("Y"), nbt1.getDouble("Z"));
        BaseText text = new LiteralText("Lodestone located at ");
        text.append(ChatUtils.formatCoords(coords));
        text.append(".");
        info(text);
        return SINGLE_SUCCESS;
    }));
    builder.then(literal("mansion").executes(s -> {
        ItemStack stack = mc.player.getInventory().getMainHandStack();
        if (stack.getItem() != Items.FILLED_MAP) {
            error("You need to hold a woodland explorer map first");
            return SINGLE_SUCCESS;
        }
        NbtCompound tag = stack.getNbt();
        NbtList nbt1 = (NbtList) tag.get("Decorations");
        if (nbt1 == null) {
            error("Couldn't locate the mansion. Are you holding a (highlight)woodland explorer map(default)?");
            return SINGLE_SUCCESS;
        }
        NbtCompound iconNBT = nbt1.getCompound(0);
        if (iconNBT == null) {
            error("Couldn't locate the mansion. Are you holding a (highlight)woodland explorer map(default)?");
            return SINGLE_SUCCESS;
        }
        Vec3d coords = new Vec3d(iconNBT.getDouble("x"), iconNBT.getDouble("y"), iconNBT.getDouble("z"));
        BaseText text = new LiteralText("Mansion located at ");
        text.append(ChatUtils.formatCoords(coords));
        text.append(".");
        info(text);
        return SINGLE_SUCCESS;
    }));
    builder.then(literal("stronghold").executes(s -> {
        FindItemResult eye = InvUtils.findInHotbar(Items.ENDER_EYE);
        if (eye.found()) {
            BaritoneAPI.getProvider().getPrimaryBaritone().getCommandManager().execute("follow entity minecraft:eye_of_ender");
            firstStart = null;
            firstEnd = null;
            secondStart = null;
            secondEnd = null;
            MatHax.EVENT_BUS.subscribe(this);
            info("Please throw the first Eye of Ender");
        } else {
            Vec3d coords = findByBlockList(strongholdBlocks);
            if (coords == null) {
                error("No stronghold found nearby. You can use (highlight)Ender Eyes(default) for more success.");
                return SINGLE_SUCCESS;
            }
            BaseText text = new LiteralText("Stronghold located at ");
            text.append(ChatUtils.formatCoords(coords));
            text.append(".");
            info(text);
        }
        return SINGLE_SUCCESS;
    }));
    builder.then(literal("nether_fortress").executes(s -> {
        Vec3d coords = findByBlockList(netherFortressBlocks);
        if (coords == null) {
            error("No nether fortress found.");
            return SINGLE_SUCCESS;
        }
        BaseText text = new LiteralText("Fortress located at ");
        text.append(ChatUtils.formatCoords(coords));
        text.append(".");
        info(text);
        return SINGLE_SUCCESS;
    }));
    builder.then(literal("monument").executes(s -> {
        ItemStack stack = mc.player.getInventory().getMainHandStack();
        if (stack.getItem() == Items.FILLED_MAP) {
            NbtCompound tag = stack.getNbt();
            if (tag != null) {
                NbtList nbt1 = (NbtList) tag.get("Decorations");
                if (nbt1 != null) {
                    NbtCompound iconNBT = nbt1.getCompound(0);
                    if (iconNBT != null) {
                        Vec3d coords = new Vec3d(iconNBT.getDouble("x"), iconNBT.getDouble("y"), iconNBT.getDouble("z"));
                        BaseText text = new LiteralText("Monument located at ");
                        text.append(ChatUtils.formatCoords(coords));
                        text.append(".");
                        info(text);
                        return SINGLE_SUCCESS;
                    }
                }
            }
        }
        Vec3d coords = findByBlockList(monumentBlocks);
        if (coords == null) {
            error("No monument found. You can try using a (highlight)Ocean explorer map(default) for more success.");
            return SINGLE_SUCCESS;
        }
        BaseText text = new LiteralText("Monument located at ");
        text.append(ChatUtils.formatCoords(coords));
        text.append(".");
        info(text);
        return SINGLE_SUCCESS;
    }));
    builder.then(literal("cancel").executes(s -> {
        cancel();
        return SINGLE_SUCCESS;
    }));
}
Also used : EntityType(net.minecraft.entity.EntityType) LiteralText(net.minecraft.text.LiteralText) Arrays(java.util.Arrays) PacketEvent(mathax.client.events.packets.PacketEvent) NbtList(net.minecraft.nbt.NbtList) EventHandler(mathax.client.eventbus.EventHandler) SINGLE_SUCCESS(com.mojang.brigadier.Command.SINGLE_SUCCESS) ItemStack(net.minecraft.item.ItemStack) PlaySoundS2CPacket(net.minecraft.network.packet.s2c.play.PlaySoundS2CPacket) BaseText(net.minecraft.text.BaseText) Block(net.minecraft.block.Block) SoundEvents(net.minecraft.sound.SoundEvents) Vec3d(net.minecraft.util.math.Vec3d) Command(mathax.client.systems.commands.Command) EntitySpawnS2CPacket(net.minecraft.network.packet.s2c.play.EntitySpawnS2CPacket) BaritoneAPI(baritone.api.BaritoneAPI) MatHax(mathax.client.MatHax) ChatUtils(mathax.client.utils.misc.ChatUtils) BlockPos(net.minecraft.util.math.BlockPos) Items(net.minecraft.item.Items) LiteralArgumentBuilder(com.mojang.brigadier.builder.LiteralArgumentBuilder) Blocks(net.minecraft.block.Blocks) CommandSource(net.minecraft.command.CommandSource) InvUtils(mathax.client.utils.player.InvUtils) NbtCompound(net.minecraft.nbt.NbtCompound) List(java.util.List) FindItemResult(mathax.client.utils.player.FindItemResult) BaseText(net.minecraft.text.BaseText) NbtCompound(net.minecraft.nbt.NbtCompound) FindItemResult(mathax.client.utils.player.FindItemResult) NbtList(net.minecraft.nbt.NbtList) ItemStack(net.minecraft.item.ItemStack) Vec3d(net.minecraft.util.math.Vec3d) LiteralText(net.minecraft.text.LiteralText)

Example 19 with SINGLE_SUCCESS

use of com.mojang.brigadier.Command.SINGLE_SUCCESS in project Client by MatHax.

the class FriendsCommand method build.

@Override
public void build(LiteralArgumentBuilder<CommandSource> builder) {
    builder.then(literal("add").then(argument("friend", FriendArgumentType.friend()).executes(context -> {
        Friend friend = FriendArgumentType.getFriend(context, "friend");
        if (Friends.get().add(friend)) {
            if (friend.name.equals(mc.getSession().getUsername()))
                return SINGLE_SUCCESS;
            if (Config.get().chatFeedback.get())
                info("Added (highlight)%s(default) to friends.", friend.name);
            if (Config.get().toastFeedback.get())
                mc.getToastManager().add(new ToastSystem(Items.EMERALD_BLOCK, Friends.get().color.getPacked(), "Friends " + Formatting.GRAY + "[" + Formatting.WHITE + friend.name + Formatting.GRAY + "]", null, Formatting.GRAY + "Added to friends.", Config.get().toastDuration.get()));
        } else {
            if (friend.name.equals(mc.getSession().getUsername()))
                return SINGLE_SUCCESS;
            if (Config.get().chatFeedback.get())
                error("(highlight)%s(default) is already your friend.", friend.name);
            if (Config.get().toastFeedback.get())
                mc.getToastManager().add(new ToastSystem(Items.EMERALD_BLOCK, Friends.get().color.getPacked(), "Friends " + Formatting.GRAY + "[" + Formatting.WHITE + friend.name + Formatting.GRAY + "]", null, Formatting.RED + "Already your friend.", Config.get().toastDuration.get()));
        }
        return SINGLE_SUCCESS;
    })));
    builder.then(literal("remove").then(argument("friend", FriendArgumentType.friend()).executes(context -> {
        Friend friend = FriendArgumentType.getFriend(context, "friend");
        if (Friends.get().remove(friend)) {
            if (friend.name.equals(mc.getSession().getUsername()))
                return SINGLE_SUCCESS;
            if (Config.get().chatFeedback.get())
                info("Removed (highlight)%s(default) from friends.", friend.name);
            if (Config.get().toastFeedback.get())
                mc.getToastManager().add(new ToastSystem(Items.EMERALD_BLOCK, Friends.get().color.getPacked(), "Friends " + Formatting.GRAY + "[" + Formatting.WHITE + friend.name + Formatting.GRAY + "]", null, Formatting.GRAY + "Removed from friends.", Config.get().toastDuration.get()));
        } else {
            if (friend.name.equals(mc.getSession().getUsername()))
                return SINGLE_SUCCESS;
            if (Config.get().chatFeedback.get())
                error("(highlight)%s(default) is not your friend.", friend.name);
            if (Config.get().toastFeedback.get())
                mc.getToastManager().add(new ToastSystem(Items.EMERALD_BLOCK, Friends.get().color.getPacked(), "Friends " + Formatting.GRAY + "[" + Formatting.WHITE + friend.name + Formatting.GRAY + "]", null, Formatting.RED + "Not your friend.", Config.get().toastDuration.get()));
        }
        return SINGLE_SUCCESS;
    })));
    builder.then(literal("list").executes(context -> {
        info("--- Friends ((highlight)%s(default)) ---", Friends.get().count());
        Friends.get().forEach(friend -> info("(highlight)" + friend.name));
        return SINGLE_SUCCESS;
    }));
}
Also used : Suggestions(com.mojang.brigadier.suggestion.Suggestions) Friends(mathax.client.systems.friends.Friends) CommandContext(com.mojang.brigadier.context.CommandContext) Collection(java.util.Collection) CompletableFuture(java.util.concurrent.CompletableFuture) Items(net.minecraft.item.Items) ArgumentType(com.mojang.brigadier.arguments.ArgumentType) Friend(mathax.client.systems.friends.Friend) Collectors(java.util.stream.Collectors) LiteralArgumentBuilder(com.mojang.brigadier.builder.LiteralArgumentBuilder) Config(mathax.client.systems.config.Config) CommandSource(net.minecraft.command.CommandSource) SINGLE_SUCCESS(com.mojang.brigadier.Command.SINGLE_SUCCESS) Formatting(net.minecraft.util.Formatting) List(java.util.List) CommandSource.suggestMatching(net.minecraft.command.CommandSource.suggestMatching) Command(mathax.client.systems.commands.Command) StringReader(com.mojang.brigadier.StringReader) ToastSystem(mathax.client.utils.render.ToastSystem) CommandSyntaxException(com.mojang.brigadier.exceptions.CommandSyntaxException) SuggestionsBuilder(com.mojang.brigadier.suggestion.SuggestionsBuilder) Friend(mathax.client.systems.friends.Friend) ToastSystem(mathax.client.utils.render.ToastSystem)

Example 20 with SINGLE_SUCCESS

use of com.mojang.brigadier.Command.SINGLE_SUCCESS in project Client by MatHax.

the class NbtCommand method build.

@Override
public void build(LiteralArgumentBuilder<CommandSource> builder) {
    builder.then(literal("add").then(argument("nbt_data", CompoundNbtTagArgumentType.nbtTag()).executes(s -> {
        ItemStack stack = mc.player.getInventory().getMainHandStack();
        if (validBasic(stack)) {
            NbtCompound tag = CompoundNbtTagArgumentType.getNbt(s, "nbt_data");
            NbtCompound source = stack.getOrCreateNbt();
            if (tag != null) {
                source.copyFrom(tag);
                setStack(stack);
            } else {
                error("Some of the NBT data could not be found, try using: " + Config.get().prefix + "nbt set {nbt}");
            }
        }
        return SINGLE_SUCCESS;
    })));
    builder.then(literal("set").then(argument("nbt_data", CompoundNbtTagArgumentType.nbtTag()).executes(s -> {
        ItemStack stack = mc.player.getInventory().getMainHandStack();
        if (validBasic(stack)) {
            NbtCompound tag = s.getArgument("nbt_data", NbtCompound.class);
            stack.setNbt(tag);
            setStack(stack);
        }
        return SINGLE_SUCCESS;
    })));
    builder.then(literal("remove").then(argument("nbt_path", NbtPathArgumentType.nbtPath()).executes(s -> {
        ItemStack stack = mc.player.getInventory().getMainHandStack();
        if (validBasic(stack)) {
            NbtPathArgumentType.NbtPath path = s.getArgument("nbt_path", NbtPathArgumentType.NbtPath.class);
            path.remove(stack.getNbt());
        }
        return SINGLE_SUCCESS;
    })));
    builder.then(literal("get").executes(s -> {
        ItemStack stack = mc.player.getInventory().getMainHandStack();
        if (stack == null) {
            error("You must hold an item in your main hand.");
        } else {
            NbtCompound tag = stack.getNbt();
            String nbt = tag == null ? "{}" : tag.asString();
            BaseText copyButton = new LiteralText("NBT");
            copyButton.setStyle(copyButton.getStyle().withFormatting(Formatting.UNDERLINE).withClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, this.toString("copy"))).withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new LiteralText("Copy the NBT data to your clipboard."))));
            BaseText text = new LiteralText("");
            text.append(copyButton);
            text.append(new LiteralText(": " + nbt));
            info(text);
        }
        return SINGLE_SUCCESS;
    }));
    builder.then(literal("copy").executes(s -> {
        ItemStack stack = mc.player.getInventory().getMainHandStack();
        if (stack == null) {
            error("You must hold an item in your main hand.");
        } else {
            NbtCompound tag = stack.getOrCreateNbt();
            mc.keyboard.setClipboard(tag.toString());
            BaseText nbt = new LiteralText("NBT");
            nbt.setStyle(nbt.getStyle().withFormatting(Formatting.UNDERLINE).withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new LiteralText(tag.toString()))));
            BaseText text = new LiteralText("");
            text.append(nbt);
            text.append(new LiteralText(" data copied!"));
            info(text);
        }
        return SINGLE_SUCCESS;
    }));
    builder.then(literal("count").then(argument("count", IntegerArgumentType.integer(-127, 127)).executes(context -> {
        ItemStack stack = mc.player.getInventory().getMainHandStack();
        if (validBasic(stack)) {
            int count = IntegerArgumentType.getInteger(context, "count");
            stack.setCount(count);
            setStack(stack);
            info("Set mainhand stack count to %s.", count);
        }
        return SINGLE_SUCCESS;
    })));
}
Also used : LiteralText(net.minecraft.text.LiteralText) CompoundNbtTagArgumentType(mathax.client.systems.commands.arguments.CompoundNbtTagArgumentType) CreativeInventoryActionC2SPacket(net.minecraft.network.packet.c2s.play.CreativeInventoryActionC2SPacket) HoverEvent(net.minecraft.text.HoverEvent) LiteralArgumentBuilder(com.mojang.brigadier.builder.LiteralArgumentBuilder) Config(mathax.client.systems.config.Config) CommandSource(net.minecraft.command.CommandSource) SINGLE_SUCCESS(com.mojang.brigadier.Command.SINGLE_SUCCESS) ItemStack(net.minecraft.item.ItemStack) NbtCompound(net.minecraft.nbt.NbtCompound) BaseText(net.minecraft.text.BaseText) Formatting(net.minecraft.util.Formatting) NbtPathArgumentType(net.minecraft.command.argument.NbtPathArgumentType) ClickEvent(net.minecraft.text.ClickEvent) Command(mathax.client.systems.commands.Command) IntegerArgumentType(com.mojang.brigadier.arguments.IntegerArgumentType) BaseText(net.minecraft.text.BaseText) HoverEvent(net.minecraft.text.HoverEvent) NbtCompound(net.minecraft.nbt.NbtCompound) NbtPathArgumentType(net.minecraft.command.argument.NbtPathArgumentType) ClickEvent(net.minecraft.text.ClickEvent) ItemStack(net.minecraft.item.ItemStack) LiteralText(net.minecraft.text.LiteralText)

Aggregations

SINGLE_SUCCESS (com.mojang.brigadier.Command.SINGLE_SUCCESS)22 LiteralArgumentBuilder (com.mojang.brigadier.builder.LiteralArgumentBuilder)22 CommandSource (net.minecraft.command.CommandSource)22 LiteralText (net.minecraft.text.LiteralText)15 Command (meteordevelopment.meteorclient.systems.commands.Command)11 Command (mathax.client.systems.commands.Command)10 List (java.util.List)9 ItemStack (net.minecraft.item.ItemStack)8 IntegerArgumentType (com.mojang.brigadier.arguments.IntegerArgumentType)7 SimpleCommandExceptionType (com.mojang.brigadier.exceptions.SimpleCommandExceptionType)7 CommandContext (com.mojang.brigadier.context.CommandContext)6 CommandSyntaxException (com.mojang.brigadier.exceptions.CommandSyntaxException)6 ChatUtils (meteordevelopment.meteorclient.utils.player.ChatUtils)6 BaseText (net.minecraft.text.BaseText)6 BaritoneAPI (baritone.api.BaritoneAPI)5 Modules (mathax.client.systems.modules.Modules)5 Items (net.minecraft.item.Items)5 Formatting (net.minecraft.util.Formatting)5 StringArgumentType (com.mojang.brigadier.arguments.StringArgumentType)4 Collectors (java.util.stream.Collectors)4