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