Package net.minecraft.server.command
Class DifficultyCommand
java.lang.Object
net.minecraft.server.command.DifficultyCommand
public class DifficultyCommand extends Object
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
FAILURE_EXCEPTION
-
Constructor Summary
Constructors Constructor Description DifficultyCommand()
-
Method Summary
Modifier and Type Method Description static int
execute(ServerCommandSource source, Difficulty difficulty)
static void
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
FAILURE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILURE_EXCEPTION
-
-
Constructor Details
-
DifficultyCommand
public DifficultyCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
execute
public static int execute(ServerCommandSource source, Difficulty difficulty) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-