This commit is contained in:
Logan Darklock 2019-08-30 18:00:34 -07:00
parent 69ca48287e
commit 172ce3a054
No known key found for this signature in database
GPG Key ID: B8C37CEDE1AC60EA
3 changed files with 58 additions and 3 deletions

View File

@ -0,0 +1,55 @@
/*
* This file is part of Baritone.
*
* Baritone is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Baritone is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.api.utils.command.defaults;
import baritone.api.Settings;
import baritone.api.utils.command.Command;
import baritone.api.utils.command.helpers.arguments.ArgConsumer;
import java.util.List;
import java.util.stream.Stream;
import static java.util.Arrays.asList;
public class ClickCommand extends Command {
public ClickCommand() {
super("click", "Open click");
}
@Override
protected void executed(String label, ArgConsumer args, Settings settings) {
args.requireMax(0);
baritone.openClick();
logDirect("aight dude");
}
@Override
protected Stream<String> tabCompleted(String label, ArgConsumer args, Settings settings) {
return Stream.empty();
}
@Override
public List<String> getLongDesc() {
return asList(
"Opens click dude",
"",
"Usage:",
"> click"
);
}
}

View File

@ -59,6 +59,7 @@ public class DefaultCommands {
new ExploreCommand(),
new BlacklistCommand(),
new FindCommand(),
new MineCommand()
new MineCommand(),
new ClickCommand()
));
}

View File

@ -19,8 +19,7 @@ import static java.util.Arrays.asList;
*
* This thing is scoped to hell, private so far you can't even access it using reflection, because you AREN'T SUPPOSED
* TO USE THIS to pause and resume Baritone. Make your own process that returns {@link PathingCommandType#REQUEST_PAUSE
* REQUEST_PAUSE}
* as needed.
* REQUEST_PAUSE} as needed.
*/
public class PauseResumeCommands {
public static Command pauseCommand;