diff --git a/src/main/java/org/hydev/hyritone/TestCommand.java b/src/main/java/org/hydev/hyritone/TestCommand.java new file mode 100644 index 00000000..33108847 --- /dev/null +++ b/src/main/java/org/hydev/hyritone/TestCommand.java @@ -0,0 +1,70 @@ +/* + * 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 . + */ + +package org.hydev.hyritone; + +import baritone.api.IBaritone; +import baritone.api.command.Command; +import baritone.api.command.argument.IArgConsumer; +import baritone.api.command.exception.CommandException; + +import java.util.Arrays; +import java.util.List; +import java.util.stream.Stream; + +/** + * TODO: Write a description for this class! + *

+ * Class created by the HyDEV Team on 2020-02-19! + * + * @author HyDEV Team (https://github.com/HyDevelop) + * @author Hykilpikonna (https://github.com/hykilpikonna) + * @author Vanilla (https://github.com/VergeDX) + * @since 2020-02-19 12:29 + */ +public class TestCommand extends Command +{ + public TestCommand(IBaritone baritone) { + super(baritone, "seedxray"); + } + + @Override + public void execute(String label, IArgConsumer args) throws CommandException + { + Hyritone.seedServerCache.enabled = !Hyritone.seedServerCache.enabled; + } + + @Override + public Stream tabComplete(String label, IArgConsumer args) { + return Stream.empty(); + } + + @Override + public String getShortDesc() { + return "Hyritone: Find ores from the seed server"; + } + + @Override + public List getLongDesc() { + return Arrays.asList( + "This function draws ESP boxes around the ores that exists in the seed server that are not mined.", + "", + "Usage:", + "> seedxray" + ); + } +}