public class DifficultyCommand extends Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
FAILURE_EXCEPTION |
Constructor and Description |
---|
DifficultyCommand() |
Modifier and Type | Method and Description |
---|---|
static int |
execute(ServerCommandSource source,
Difficulty difficulty) |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) |
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILURE_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
public static int execute(ServerCommandSource source, Difficulty difficulty) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException