Package net.minecraft.server.commands
Class DataPackCommand
java.lang.Object
net.minecraft.server.commands.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.exceptions.Dynamic2CommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.suggestion.SuggestionProvider
<CommandSourceStack> private static final com.mojang.brigadier.suggestion.SuggestionProvider
<CommandSourceStack> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
disablePack
(CommandSourceStack p_136826_, Pack p_136827_) private static int
enablePack
(CommandSourceStack p_136829_, Pack p_136830_, DataPackCommand.Inserter p_136831_) private static Pack
getPack
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_136816_, String p_136817_, boolean p_136818_) private static int
listAvailablePacks
(CommandSourceStack p_136855_) private static int
listEnabledPacks
(CommandSourceStack p_136866_) private static int
listPacks
(CommandSourceStack p_136824_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_136809_)
-
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 -
ERROR_CANNOT_DISABLE_FEATURE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_CANNOT_DISABLE_FEATURE -
ERROR_PACK_FEATURES_NOT_ENABLED
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_PACK_FEATURES_NOT_ENABLED -
SELECTED_PACKS
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack> SELECTED_PACKS -
UNSELECTED_PACKS
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack> UNSELECTED_PACKS
-
-
Constructor Details
-
DataPackCommand
public DataPackCommand()
-
-
Method Details
-
register
-
enablePack
private static int enablePack(CommandSourceStack p_136829_, Pack p_136830_, DataPackCommand.Inserter p_136831_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
disablePack
-
listPacks
-
listAvailablePacks
-
listEnabledPacks
-
getPack
private static Pack getPack(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_136816_, String p_136817_, boolean p_136818_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-