Class DataPackCommand

java.lang.Object
net.minecraft.command.impl.DataPackCommand

public class DataPackCommand extends Object
  • 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

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

      private static int disablePack(CommandSource p_198312_0_, ResourcePackInfo p_198312_1_)
    • 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_, String p_198303_1_, boolean p_198303_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException