Commands can throw exceptions
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user