XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEServerManager

【Java】我的世界XFE服务器管理器

公开
关注 0 Fork 0 Star 0
UTF-8
package com.xfestudio.xfeservermanager.api.command;

import com.xfestudio.xfeservermanager.api.util.ApiChecks;
import java.util.List;
import java.util.Map;

/** Input offered to a semantic adapter after the platform dispatcher has parsed a command. */
public record CommandAnalysisRequest(
        String rawInput,
        String commandId,
        List<String> commandPath,
        Map<String, String> parsedArguments,
        List<String> nestedRawCommands
) {
    public CommandAnalysisRequest {
        rawInput = ApiChecks.notBlank(rawInput, "rawInput");
        commandId = CommandNames.canonicalize(commandId);
        commandPath = ApiChecks.immutableList(commandPath, "commandPath");
        parsedArguments = ApiChecks.immutableMap(parsedArguments, "parsedArguments");
        nestedRawCommands = ApiChecks.immutableList(nestedRawCommands, "nestedRawCommands");
    }
}