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

import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import meteordevelopment.meteorclient.commands.Command;
import net.minecraft.class_10185;
import net.minecraft.class_2172;
import net.minecraft.class_2596;
import net.minecraft.class_2851;

public class DismountCommand
extends Command {
    public DismountCommand() {
        super("dismount", "Dismounts you from entity you are riding.", new String[0]);
    }

    @Override
    public void build(LiteralArgumentBuilder<class_2172> builder) {
        builder.executes(context -> {
            class_10185 sneak = new class_10185(false, false, false, false, false, true, false);
            mc.method_1562().method_52787((class_2596)new class_2851(sneak));
            return 1;
        });
    }
}

