@@ -0,0 +1,2371 @@
+/******************************************************************************%0A *                                                                            *%0A *                    Copyright 2018 Subterranean Security                    *%0A *                                                                            *%0A *  Licensed under the Apache License, Version 2.0 (the %22License%22);           *%0A *  you may not use this file except in compliance with the License.          *%0A *  You may obtain a copy of the License at                                   *%0A *                                                                            *%0A *      http://www.apache.org/licenses/LICENSE-2.0                            *%0A *                                                                            *%0A *  Unless required by applicable law or agreed to in writing, software       *%0A *  distributed under the License is distributed on an %22AS IS%22 BASIS,         *%0A *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  *%0A *  See the License for the specific language governing permissions and       *%0A *  limitations under the License.                                            *%0A *                                                                            *%0A *****************************************************************************/%0Apackage com.sandpolis.viewer.cmd;%0A%0Aimport com.sandpolis.core.net.Cmdlet;%0Aimport com.sandpolis.core.net.future.ResponseFuture;%0Aimport com.sandpolis.core.proto.net.MCGenerator.RQ_Generate;%0Aimport com.sandpolis.core.proto.net.MCGenerator.RS_Generate;%0Aimport com.sandpolis.core.proto.util.Generator.GenConfig;%0A%0A/**%0A * Contains generator commands.%0A * %0A * @author cilki%0A * @since 5.0.0%0A */%0Apublic final class GenCmd extends Cmdlet%3CGenCmd%3E %7B%0A%0A%09/**%0A%09 * Generate a payload from the given configuration.%0A%09 * %0A%09 * @param config The generation configuration%0A%09 * @return A future that will receive the outcome of this action%0A%09 */%0A%09public ResponseFuture%3CRS_Generate%3E generate(GenConfig config) %7B%0A%09%09return rq(RQ_Generate.newBuilder().setConfig(config));%0A%09%7D%0A%0A%09/**%0A%09 * Prepare for an asynchronous command.%0A%09 * %0A%09 * @return A configurable object from which all asynchronous (nonstatic)%0A%09 *         commands in %7B@link GenCmd%7D can be invoked%0A%09 */%0A%09public static GenCmd async() %7B%0A%09%09return new GenCmd();%0A%09%7D%0A%0A%09private GenCmd() %7B%0A%09%7D%0A%7D%0A

Add GenCmd