public class DataPackCommand
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
DataPackCommand.IHandler |
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
DISABLE_FAILED_EXCEPTION |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
ENABLE_FAILED_EXCEPTION |
private static com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> |
SUGGEST_AVAILABLE_PACK |
private static com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> |
SUGGEST_ENABLED_PACK |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_DATA_PACK_EXCEPTION |
Constructor and Description |
---|
DataPackCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
disablePack(CommandSource source,
ResourcePackInfo pack) |
private static int |
enablePack(CommandSource source,
ResourcePackInfo pack,
DataPackCommand.IHandler priorityCallback) |
private static int |
listAllPacks(CommandSource source) |
private static int |
listAvailablePacks(CommandSource source) |
private static int |
listEnabledPacks(CommandSource source) |
private static ResourcePackInfo |
parsePackInfo(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name,
boolean enabling) |
static void |
register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher) |
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_DATA_PACK_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ENABLE_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType DISABLE_FAILED_EXCEPTION
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> SUGGEST_ENABLED_PACK
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> SUGGEST_AVAILABLE_PACK
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher)
private static int enablePack(CommandSource source, ResourcePackInfo pack, DataPackCommand.IHandler priorityCallback) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int disablePack(CommandSource source, ResourcePackInfo pack)
private static int listAllPacks(CommandSource source)
private static int listAvailablePacks(CommandSource source)
private static int listEnabledPacks(CommandSource source)
private static ResourcePackInfo parsePackInfo(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name, boolean enabling) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException