Package net.minecraft.server.commands
Class DifficultyCommand
java.lang.Object
net.minecraft.server.commands.DifficultyCommand
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_136939_) static int
setDifficulty
(CommandSourceStack p_136945_, Difficulty p_136946_)
-
Field Details
-
ERROR_ALREADY_DIFFICULT
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_ALREADY_DIFFICULT
-
-
Constructor Details
-
DifficultyCommand
public DifficultyCommand()
-
-
Method Details
-
register
-
setDifficulty
public static int setDifficulty(CommandSourceStack p_136945_, Difficulty p_136946_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-