public class DatapackCommand extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
DatapackCommand.PackAdder |
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
ALREADY_DISABLED_EXCEPTION |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
ALREADY_ENABLED_EXCEPTION |
private static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> |
DISABLED_CONTAINERS_SUGGESTION_PROVIDER |
private static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> |
ENABLED_CONTAINERS_SUGGESTION_PROVIDER |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_DATAPACK_EXCEPTION |
Constructor and Description |
---|
DatapackCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
executeDisable(ServerCommandSource source,
ResourcePackProfile container) |
private static int |
executeEnable(ServerCommandSource source,
ResourcePackProfile container,
DatapackCommand.PackAdder packAdder) |
private static int |
executeList(ServerCommandSource source) |
private static int |
executeListAvailable(ServerCommandSource source) |
private static int |
executeListEnabled(ServerCommandSource source) |
private static ResourcePackProfile |
getPackContainer(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name,
boolean enable) |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) |
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_DATAPACK_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ALREADY_ENABLED_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ALREADY_DISABLED_EXCEPTION
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> ENABLED_CONTAINERS_SUGGESTION_PROVIDER
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> DISABLED_CONTAINERS_SUGGESTION_PROVIDER
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static int executeEnable(ServerCommandSource source, ResourcePackProfile container, DatapackCommand.PackAdder packAdder) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int executeDisable(ServerCommandSource source, ResourcePackProfile container)
private static int executeList(ServerCommandSource source)
private static int executeListAvailable(ServerCommandSource source)
private static int executeListEnabled(ServerCommandSource source)
private static ResourcePackProfile getPackContainer(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, boolean enable)