Commands can throw exceptions
This commit is contained in:
1 parent
9d8ccfb1e2
commit
02f3a68ac0
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user