Package net.minecraft.command.impl
Class DataPackCommand
java.lang.Object
net.minecraft.command.impl.DataPackCommand
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource>
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
disablePack
(CommandSource p_198312_0_, ResourcePackInfo p_198312_1_) private static int
enablePack
(CommandSource p_198297_0_, ResourcePackInfo p_198297_1_, DataPackCommand.IHandler p_198297_2_) private static ResourcePackInfo
getPack
(com.mojang.brigadier.context.CommandContext<CommandSource> p_198303_0_, String p_198303_1_, boolean p_198303_2_) private static int
listAvailablePacks
(CommandSource p_198314_0_) private static int
listEnabledPacks
(CommandSource p_198315_0_) private static int
listPacks
(CommandSource p_198313_0_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198299_0_)
-
Field Details
-
ERROR_UNKNOWN_PACK
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_PACK -
ERROR_PACK_ALREADY_ENABLED
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_PACK_ALREADY_ENABLED -
ERROR_PACK_ALREADY_DISABLED
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_PACK_ALREADY_DISABLED -
SELECTED_PACKS
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> SELECTED_PACKS -
UNSELECTED_PACKS
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> UNSELECTED_PACKS
-
-
Constructor Details
-
DataPackCommand
public DataPackCommand()
-
-
Method Details
-
register
-
enablePack
private static int enablePack(CommandSource p_198297_0_, ResourcePackInfo p_198297_1_, DataPackCommand.IHandler p_198297_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
disablePack
-
listPacks
-
listAvailablePacks
-
listEnabledPacks
-
getPack
private static ResourcePackInfo getPack(com.mojang.brigadier.context.CommandContext<CommandSource> p_198303_0_, String p_198303_1_, boolean p_198303_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-