improved .heads

This commit is contained in:
Cloudburst
2021-06-12 16:36:52 +02:00
parent aa40213b24
commit 527cf827ba
3 changed files with 14 additions and 8 deletions

View File

@@ -0,0 +1,30 @@
package cloudburst.rejects.commands;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import net.minecraft.command.CommandSource;
import cloudburst.rejects.gui.screens.HeadScreen;
import minegame159.meteorclient.MeteorClient;
import minegame159.meteorclient.gui.GuiThemes;
import minegame159.meteorclient.systems.commands.Command;
import static com.mojang.brigadier.Command.SINGLE_SUCCESS;
public class HeadsCommand extends Command {
public HeadsCommand() {
super("heads", "Display heads gui");
}
@Override
public void build(LiteralArgumentBuilder<CommandSource> builder) {
builder.executes(ctx -> {
MeteorClient.INSTANCE.screenToOpen = new HeadScreen(GuiThemes.get());
return SINGLE_SUCCESS;
});
}
}