/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.mojang.brigadier.arguments.IntegerArgumentType
 *  com.mojang.brigadier.builder.LiteralArgumentBuilder
 *  net.minecraft.class_2172
 */
package meteordevelopment.meteorclient.commands.commands;

import com.mojang.brigadier.arguments.IntegerArgumentType;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import meteordevelopment.meteorclient.commands.Command;
import meteordevelopment.meteorclient.mixininterface.ISimpleOption;
import net.minecraft.class_2172;

public class FovCommand
extends Command {
    public FovCommand() {
        super("fov", "Changes your fov.", new String[0]);
    }

    @Override
    public void build(LiteralArgumentBuilder<class_2172> builder) {
        builder.then(FovCommand.argument("fov", IntegerArgumentType.integer((int)1, (int)180)).executes(context -> {
            ((ISimpleOption)FovCommand.mc.field_1690.method_41808()).meteor$set(context.getArgument("fov", Integer.class));
            return 1;
        }));
    }
}

