Commands can throw exceptions

This commit is contained in:
Nathan Adams 2017-08-15 09:35:09 +02:00
parent 9d8ccfb1e2
commit 02f3a68ac0

View file

@ -1,10 +1,11 @@
package com.mojang.brigadier;
import com.mojang.brigadier.context.CommandContext;
import com.mojang.brigadier.exceptions.CommandException;
@FunctionalInterface
public interface Command<S> {
int SINGLE_SUCCESS = 1;
int run(CommandContext<S> context);
int run(CommandContext<S> context) throws CommandException;
}