Class DataPackCommand

java.lang.Object
net.minecraft.server.commands.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
    • 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

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_136809_)
    • 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

      private static int disablePack(CommandSourceStack p_136826_, Pack p_136827_)
    • listPacks

      private static int listPacks(CommandSourceStack p_136824_)
    • listAvailablePacks

      private static int listAvailablePacks(CommandSourceStack p_136855_)
    • listEnabledPacks

      private static int listEnabledPacks(CommandSourceStack p_136866_)
    • 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