Class DatapackCommand

java.lang.Object
net.minecraft.server.command.DatapackCommand

public class DatapackCommand extends Object
Mappings:
Namespace Name
official xy
intermediary net/minecraft/class_3027
named net/minecraft/server/command/DatapackCommand
  • Field Details

    • UNKNOWN_DATAPACK_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_DATAPACK_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official a Lxy;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_13503 Lnet/minecraft/class_3027;field_13503:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named UNKNOWN_DATAPACK_EXCEPTION Lnet/minecraft/server/command/DatapackCommand;UNKNOWN_DATAPACK_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • ALREADY_ENABLED_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ALREADY_ENABLED_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official b Lxy;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_13504 Lnet/minecraft/class_3027;field_13504:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named ALREADY_ENABLED_EXCEPTION Lnet/minecraft/server/command/DatapackCommand;ALREADY_ENABLED_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • ALREADY_DISABLED_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ALREADY_DISABLED_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official c Lxy;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_13505 Lnet/minecraft/class_3027;field_13505:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named ALREADY_DISABLED_EXCEPTION Lnet/minecraft/server/command/DatapackCommand;ALREADY_DISABLED_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • ENABLED_CONTAINERS_SUGGESTION_PROVIDER

      private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> ENABLED_CONTAINERS_SUGGESTION_PROVIDER
      Mappings:
      Namespace Name Mixin selector
      official d Lxy;d:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
      intermediary field_13506 Lnet/minecraft/class_3027;field_13506:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
      named ENABLED_CONTAINERS_SUGGESTION_PROVIDER Lnet/minecraft/server/command/DatapackCommand;ENABLED_CONTAINERS_SUGGESTION_PROVIDER:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
    • DISABLED_CONTAINERS_SUGGESTION_PROVIDER

      private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> DISABLED_CONTAINERS_SUGGESTION_PROVIDER
      Mappings:
      Namespace Name Mixin selector
      official e Lxy;e:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
      intermediary field_13502 Lnet/minecraft/class_3027;field_13502:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
      named DISABLED_CONTAINERS_SUGGESTION_PROVIDER Lnet/minecraft/server/command/DatapackCommand;DISABLED_CONTAINERS_SUGGESTION_PROVIDER:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
  • Constructor Details

    • DatapackCommand

      public DatapackCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
      Mappings:
      Namespace Name Mixin selector
      official a Lxy;a(Lcom/mojang/brigadier/CommandDispatcher;)V
      intermediary method_13125 Lnet/minecraft/class_3027;method_13125(Lcom/mojang/brigadier/CommandDispatcher;)V
      named register Lnet/minecraft/server/command/DatapackCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
    • executeEnable

      private static int executeEnable(ServerCommandSource source, ResourcePackProfile container, DatapackCommand.PackAdder packAdder) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lxy;a(Ldl;Ladg;Lxy$a;)I
      intermediary method_13114 Lnet/minecraft/class_3027;method_13114(Lnet/minecraft/class_2168;Lnet/minecraft/class_3288;Lnet/minecraft/class_3027$class_3028;)I
      named executeEnable Lnet/minecraft/server/command/DatapackCommand;executeEnable(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/resource/ResourcePackProfile;Lnet/minecraft/server/command/DatapackCommand$PackAdder;)I
    • executeDisable

      private static int executeDisable(ServerCommandSource source, ResourcePackProfile container)
      Mappings:
      Namespace Name Mixin selector
      official a Lxy;a(Ldl;Ladg;)I
      intermediary method_13140 Lnet/minecraft/class_3027;method_13140(Lnet/minecraft/class_2168;Lnet/minecraft/class_3288;)I
      named executeDisable Lnet/minecraft/server/command/DatapackCommand;executeDisable(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/resource/ResourcePackProfile;)I
    • executeList

      private static int executeList(ServerCommandSource source)
      Mappings:
      Namespace Name Mixin selector
      official a Lxy;a(Ldl;)I
      intermediary method_13121 Lnet/minecraft/class_3027;method_13121(Lnet/minecraft/class_2168;)I
      named executeList Lnet/minecraft/server/command/DatapackCommand;executeList(Lnet/minecraft/server/command/ServerCommandSource;)I
    • executeListAvailable

      private static int executeListAvailable(ServerCommandSource source)
      Mappings:
      Namespace Name Mixin selector
      official b Lxy;b(Ldl;)I
      intermediary method_13128 Lnet/minecraft/class_3027;method_13128(Lnet/minecraft/class_2168;)I
      named executeListAvailable Lnet/minecraft/server/command/DatapackCommand;executeListAvailable(Lnet/minecraft/server/command/ServerCommandSource;)I
    • executeListEnabled

      private static int executeListEnabled(ServerCommandSource source)
      Mappings:
      Namespace Name Mixin selector
      official c Lxy;c(Ldl;)I
      intermediary method_13126 Lnet/minecraft/class_3027;method_13126(Lnet/minecraft/class_2168;)I
      named executeListEnabled Lnet/minecraft/server/command/DatapackCommand;executeListEnabled(Lnet/minecraft/server/command/ServerCommandSource;)I
    • getPackContainer

      private static ResourcePackProfile getPackContainer(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, boolean enable) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lxy;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Z)Ladg;
      intermediary method_13127 Lnet/minecraft/class_3027;method_13127(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Z)Lnet/minecraft/class_3288;
      named getPackContainer Lnet/minecraft/server/command/DatapackCommand;getPackContainer(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Z)Lnet/minecraft/resource/ResourcePackProfile;