Commands can throw exceptions
This commit is contained in:
parent
9d8ccfb1e2
commit
02f3a68ac0
1 changed files with 2 additions and 1 deletions
|
@ -1,10 +1,11 @@
|
||||||
package com.mojang.brigadier;
|
package com.mojang.brigadier;
|
||||||
|
|
||||||
import com.mojang.brigadier.context.CommandContext;
|
import com.mojang.brigadier.context.CommandContext;
|
||||||
|
import com.mojang.brigadier.exceptions.CommandException;
|
||||||
|
|
||||||
@FunctionalInterface
|
@FunctionalInterface
|
||||||
public interface Command<S> {
|
public interface Command<S> {
|
||||||
int SINGLE_SUCCESS = 1;
|
int SINGLE_SUCCESS = 1;
|
||||||
|
|
||||||
int run(CommandContext<S> context);
|
int run(CommandContext<S> context) throws CommandException;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue