Class DataPackCommand


  • public class DataPackCommand
    extends java.lang.Object
    • Field Detail

      • 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 Detail

      • DataPackCommand

        public DataPackCommand()
    • Method Detail

      • register

        public static void register​(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198299_0_)
      • 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
      • listPacks

        private static int listPacks​(CommandSource p_198313_0_)
      • listAvailablePacks

        private static int listAvailablePacks​(CommandSource p_198314_0_)
      • listEnabledPacks

        private static int listEnabledPacks​(CommandSource p_198315_0_)
      • getPack

        private static ResourcePackInfo getPack​(com.mojang.brigadier.context.CommandContext<CommandSource> p_198303_0_,
                                                java.lang.String p_198303_1_,
                                                boolean p_198303_2_)
                                         throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException