Class DatapackCommand

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

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

    • UNKNOWN_DATAPACK_EXCEPTION

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

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

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

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType CANNOT_DISABLE_FEATURE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named CANNOT_DISABLE_FEATURE_EXCEPTION Lnet/minecraft/server/command/DatapackCommand;CANNOT_DISABLE_FEATURE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_49775 Lnet/minecraft/class_3027;field_49775:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official d Lama;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • NO_FLAGS_EXCEPTION

      private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType NO_FLAGS_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named NO_FLAGS_EXCEPTION Lnet/minecraft/server/command/DatapackCommand;NO_FLAGS_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
      intermediary field_39980 Lnet/minecraft/class_3027;field_39980:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
      official e Lama;e:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
    • ENABLED_CONTAINERS_SUGGESTION_PROVIDER

      private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> ENABLED_CONTAINERS_SUGGESTION_PROVIDER
      Mappings:
      Namespace Name Mixin selector
      named ENABLED_CONTAINERS_SUGGESTION_PROVIDER Lnet/minecraft/server/command/DatapackCommand;ENABLED_CONTAINERS_SUGGESTION_PROVIDER:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
      intermediary field_13506 Lnet/minecraft/class_3027;field_13506:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
      official f Lama;f: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
      named DISABLED_CONTAINERS_SUGGESTION_PROVIDER Lnet/minecraft/server/command/DatapackCommand;DISABLED_CONTAINERS_SUGGESTION_PROVIDER:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
      intermediary field_13502 Lnet/minecraft/class_3027;field_13502:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
      official g Lama;g: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
      named register Lnet/minecraft/server/command/DatapackCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
      intermediary method_13125 Lnet/minecraft/class_3027;method_13125(Lcom/mojang/brigadier/CommandDispatcher;)V
      official a Lama;a(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
      named executeEnable Lnet/minecraft/server/command/DatapackCommand;executeEnable(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/resource/ResourcePackProfile;Lnet/minecraft/server/command/DatapackCommand$PackAdder;)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
      official a Lama;a(Leq;Late;Lama$a;)I
    • executeDisable

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

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

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

      private static int executeListEnabled(ServerCommandSource source)
      Mappings:
      Namespace Name Mixin selector
      named executeListEnabled Lnet/minecraft/server/command/DatapackCommand;executeListEnabled(Lnet/minecraft/server/command/ServerCommandSource;)I
      intermediary method_13126 Lnet/minecraft/class_3027;method_13126(Lnet/minecraft/class_2168;)I
      official c Lama;c(Leq;)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
      named getPackContainer Lnet/minecraft/server/command/DatapackCommand;getPackContainer(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Z)Lnet/minecraft/resource/ResourcePackProfile;
      intermediary method_13127 Lnet/minecraft/class_3027;method_13127(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Z)Lnet/minecraft/class_3288;
      official a Lama;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Z)Late;