Search in sources :

Example 1 with Result

use of me.botsko.prism.api.Result in project Prism-Bukkit by prism.

the class Prism method performLookup.

@Override
public Future<Result> performLookup(PrismParameters parameters, CommandSender sender) {
    CompletableFuture<Result> resultCompletableFuture = new CompletableFuture<>();
    Bukkit.getScheduler().runTaskAsynchronously(instance, () -> {
        Result result = new ActionsQuery(Prism.getInstance()).lookup(parameters, sender);
        resultCompletableFuture.complete(result);
    });
    return resultCompletableFuture;
}
Also used : CompletableFuture(java.util.concurrent.CompletableFuture) ActionsQuery(me.botsko.prism.actionlibs.ActionsQuery) Result(me.botsko.prism.api.Result) QueryResult(me.botsko.prism.actionlibs.QueryResult)

Aggregations

CompletableFuture (java.util.concurrent.CompletableFuture)1 ActionsQuery (me.botsko.prism.actionlibs.ActionsQuery)1 QueryResult (me.botsko.prism.actionlibs.QueryResult)1 Result (me.botsko.prism.api.Result)1