baritone/src/main/java/baritone/utils/command/defaults/DefaultCommands.java

75 lines
3.2 KiB
Java
Raw Normal View History

2019-08-30 18:55:25 +00:00
/*
* 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/>.
*/
2019-09-04 18:17:36 +00:00
package baritone.utils.command.defaults;
2019-08-30 18:55:25 +00:00
2019-09-19 20:30:40 +00:00
import baritone.api.IBaritone;
2019-08-30 18:55:25 +00:00
import baritone.api.utils.command.Command;
2019-09-19 20:30:40 +00:00
import java.util.*;
2019-08-30 18:55:25 +00:00
public class DefaultCommands {
2019-09-19 20:40:46 +00:00
2019-09-19 20:30:40 +00:00
public static List<Command> commands(IBaritone baritone) {
Objects.requireNonNull(baritone);
List<Command> commands = new ArrayList<>();
commands.addAll(Arrays.asList(
new HelpCommand(baritone),
new SetCommand(baritone),
2019-09-19 21:38:13 +00:00
new CommandAlias(baritone, Arrays.asList("modified", "mod", "baritone", "modifiedsettings"), "List modified settings", "set modified"),
2019-09-19 20:30:40 +00:00
new CommandAlias(baritone, "reset", "Reset all settings or just one", "set reset"),
new GoalCommand(baritone),
new PathCommand(baritone),
new ProcCommand(baritone),
new VersionCommand(baritone),
new RepackCommand(baritone),
new BuildCommand(baritone),
new SchematicaCommand(baritone),
new ComeCommand(baritone),
new AxisCommand(baritone),
new CancelCommand(baritone),
new ForceCancelCommand(baritone),
new GcCommand(baritone),
new InvertCommand(baritone),
new ClearareaCommand(baritone),
new TunnelCommand(baritone),
new RenderCommand(baritone),
new FarmCommand(baritone),
new ChestsCommand(baritone),
new FollowCommand(baritone),
new ExploreFilterCommand(baritone),
new ReloadAllCommand(baritone),
new SaveAllCommand(baritone),
new ExploreCommand(baritone),
new BlacklistCommand(baritone),
new FindCommand(baritone),
new MineCommand(baritone),
new ClickCommand(baritone),
new ThisWayCommand(baritone),
new WaypointsCommand(baritone),
new CommandAlias(baritone, "sethome", "Sets your home waypoint", "waypoints save home"),
new CommandAlias(baritone, "home", "Set goal to your home waypoint", "waypoints goal home"),
new SelCommand(baritone)
));
PauseResumeCommands prc = new PauseResumeCommands(baritone);
commands.add(prc.pauseCommand);
commands.add(prc.resumeCommand);
commands.add(prc.pausedCommand);
return Collections.unmodifiableList(commands);
}
2019-08-30 18:55:25 +00:00
}