Class DataCommand

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

public class DataCommand extends Object
Mappings:
Namespace Name
official ahk
intermediary net/minecraft/class_3164
named net/minecraft/server/command/DataCommand
  • Field Details

    • MERGE_FAILED_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MERGE_FAILED_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official d Lahk;d:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_13796 Lnet/minecraft/class_3164;field_13796:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      named MERGE_FAILED_EXCEPTION Lnet/minecraft/server/command/DataCommand;MERGE_FAILED_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
    • GET_INVALID_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType GET_INVALID_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official e Lahk;e:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_13791 Lnet/minecraft/class_3164;field_13791:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named GET_INVALID_EXCEPTION Lnet/minecraft/server/command/DataCommand;GET_INVALID_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • GET_UNKNOWN_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType GET_UNKNOWN_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official f Lahk;f:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_13793 Lnet/minecraft/class_3164;field_13793:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named GET_UNKNOWN_EXCEPTION Lnet/minecraft/server/command/DataCommand;GET_UNKNOWN_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • GET_MULTIPLE_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType GET_MULTIPLE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official g Lahk;g:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_13794 Lnet/minecraft/class_3164;field_13794:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      named GET_MULTIPLE_EXCEPTION Lnet/minecraft/server/command/DataCommand;GET_MULTIPLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
    • MODIFY_EXPECTED_OBJECT_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType MODIFY_EXPECTED_OBJECT_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official h Lahk;h:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_13797 Lnet/minecraft/class_3164;field_13797:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named MODIFY_EXPECTED_OBJECT_EXCEPTION Lnet/minecraft/server/command/DataCommand;MODIFY_EXPECTED_OBJECT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • MODIFY_EXPECTED_VALUE_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType MODIFY_EXPECTED_VALUE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official i Lahk;i:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_41747 Lnet/minecraft/class_3164;field_41747:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named MODIFY_EXPECTED_VALUE_EXCEPTION Lnet/minecraft/server/command/DataCommand;MODIFY_EXPECTED_VALUE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • OBJECT_TYPE_FACTORIES

      public static final List<Function<String,DataCommand.ObjectType>> OBJECT_TYPE_FACTORIES
      Mappings:
      Namespace Name Mixin selector
      official a Lahk;a:Ljava/util/List;
      intermediary field_13790 Lnet/minecraft/class_3164;field_13790:Ljava/util/List;
      named OBJECT_TYPE_FACTORIES Lnet/minecraft/server/command/DataCommand;OBJECT_TYPE_FACTORIES:Ljava/util/List;
    • TARGET_OBJECT_TYPES

      public static final List<DataCommand.ObjectType> TARGET_OBJECT_TYPES
      Mappings:
      Namespace Name Mixin selector
      official b Lahk;b:Ljava/util/List;
      intermediary field_13798 Lnet/minecraft/class_3164;field_13798:Ljava/util/List;
      named TARGET_OBJECT_TYPES Lnet/minecraft/server/command/DataCommand;TARGET_OBJECT_TYPES:Ljava/util/List;
    • SOURCE_OBJECT_TYPES

      public static final List<DataCommand.ObjectType> SOURCE_OBJECT_TYPES
      Mappings:
      Namespace Name Mixin selector
      official c Lahk;c:Ljava/util/List;
      intermediary field_13792 Lnet/minecraft/class_3164;field_13792:Ljava/util/List;
      named SOURCE_OBJECT_TYPES Lnet/minecraft/server/command/DataCommand;SOURCE_OBJECT_TYPES:Ljava/util/List;
  • Constructor Details

    • DataCommand

      public DataCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
      Mappings:
      Namespace Name Mixin selector
      official a Lahk;a(Lcom/mojang/brigadier/CommandDispatcher;)V
      intermediary method_13905 Lnet/minecraft/class_3164;method_13905(Lcom/mojang/brigadier/CommandDispatcher;)V
      named register Lnet/minecraft/server/command/DataCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
    • asString

      private static String asString(NbtElement nbt) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lahk;a(Lrx;)Ljava/lang/String;
      intermediary method_48096 Lnet/minecraft/class_3164;method_48096(Lnet/minecraft/class_2520;)Ljava/lang/String;
      named asString Lnet/minecraft/server/command/DataCommand;asString(Lnet/minecraft/nbt/NbtElement;)Ljava/lang/String;
    • mapValues

      private static List<NbtElement> mapValues(List<NbtElement> list, Function<String,String> function) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lahk;a(Ljava/util/List;Ljava/util/function/Function;)Ljava/util/List;
      intermediary method_48095 Lnet/minecraft/class_3164;method_48095(Ljava/util/List;Ljava/util/function/Function;)Ljava/util/List;
      named mapValues Lnet/minecraft/server/command/DataCommand;mapValues(Ljava/util/List;Ljava/util/function/Function;)Ljava/util/List;
    • addModifyArgument

      private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?> addModifyArgument(BiConsumer<com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?>,DataCommand.ModifyArgumentCreator> subArgumentAdder)
      Mappings:
      Namespace Name Mixin selector
      official a Lahk;a(Ljava/util/function/BiConsumer;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
      intermediary method_13898 Lnet/minecraft/class_3164;method_13898(Ljava/util/function/BiConsumer;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
      named addModifyArgument Lnet/minecraft/server/command/DataCommand;addModifyArgument(Ljava/util/function/BiConsumer;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
    • getValues

      private static List<NbtElement> getValues(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, DataCommand.ObjectType objectType) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lahk;a(Lcom/mojang/brigadier/context/CommandContext;Lahk$c;)Ljava/util/List;
      intermediary method_48091 Lnet/minecraft/class_3164;method_48091(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_3164$class_3167;)Ljava/util/List;
      named getValues Lnet/minecraft/server/command/DataCommand;getValues(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/server/command/DataCommand$ObjectType;)Ljava/util/List;
    • getValuesByPath

      private static List<NbtElement> getValuesByPath(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, DataCommand.ObjectType objectType) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official b Lahk;b(Lcom/mojang/brigadier/context/CommandContext;Lahk$c;)Ljava/util/List;
      intermediary method_48098 Lnet/minecraft/class_3164;method_48098(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_3164$class_3167;)Ljava/util/List;
      named getValuesByPath Lnet/minecraft/server/command/DataCommand;getValuesByPath(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/server/command/DataCommand$ObjectType;)Ljava/util/List;
    • executeModify

      private static int executeModify(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, DataCommand.ObjectType objectType, DataCommand.ModifyOperation modifier, List<NbtElement> elements) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lahk;a(Lcom/mojang/brigadier/context/CommandContext;Lahk$c;Lahk$a;Ljava/util/List;)I
      intermediary method_13920 Lnet/minecraft/class_3164;method_13920(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_3164$class_3167;Lnet/minecraft/class_3164$class_3165;Ljava/util/List;)I
      named executeModify Lnet/minecraft/server/command/DataCommand;executeModify(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/server/command/DataCommand$ObjectType;Lnet/minecraft/server/command/DataCommand$ModifyOperation;Ljava/util/List;)I
    • executeRemove

      private static int executeRemove(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lahk;a(Ldr;Lahj;Leg$g;)I
      intermediary method_13885 Lnet/minecraft/class_3164;method_13885(Lnet/minecraft/class_2168;Lnet/minecraft/class_3162;Lnet/minecraft/class_2203$class_2209;)I
      named executeRemove Lnet/minecraft/server/command/DataCommand;executeRemove(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/DataCommandObject;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;)I
    • getNbt

      private static NbtElement getNbt(NbtPathArgumentType.NbtPath path, DataCommandObject object) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lahk;a(Leg$g;Lahj;)Lrx;
      intermediary method_13921 Lnet/minecraft/class_3164;method_13921(Lnet/minecraft/class_2203$class_2209;Lnet/minecraft/class_3162;)Lnet/minecraft/class_2520;
      named getNbt Lnet/minecraft/server/command/DataCommand;getNbt(Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;Lnet/minecraft/command/DataCommandObject;)Lnet/minecraft/nbt/NbtElement;
    • executeGet

      private static int executeGet(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official b Lahk;b(Ldr;Lahj;Leg$g;)I
      intermediary method_13916 Lnet/minecraft/class_3164;method_13916(Lnet/minecraft/class_2168;Lnet/minecraft/class_3162;Lnet/minecraft/class_2203$class_2209;)I
      named executeGet Lnet/minecraft/server/command/DataCommand;executeGet(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/DataCommandObject;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;)I
    • executeGet

      private static int executeGet(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path, double scale) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lahk;a(Ldr;Lahj;Leg$g;D)I
      intermediary method_13903 Lnet/minecraft/class_3164;method_13903(Lnet/minecraft/class_2168;Lnet/minecraft/class_3162;Lnet/minecraft/class_2203$class_2209;D)I
      named executeGet Lnet/minecraft/server/command/DataCommand;executeGet(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/DataCommandObject;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;D)I
    • executeGet

      private static int executeGet(ServerCommandSource source, DataCommandObject object) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lahk;a(Ldr;Lahj;)I
      intermediary method_13908 Lnet/minecraft/class_3164;method_13908(Lnet/minecraft/class_2168;Lnet/minecraft/class_3162;)I
      named executeGet Lnet/minecraft/server/command/DataCommand;executeGet(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/DataCommandObject;)I
    • executeMerge

      private static int executeMerge(ServerCommandSource source, DataCommandObject object, NbtCompound nbt) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lahk;a(Ldr;Lahj;Lre;)I
      intermediary method_13901 Lnet/minecraft/class_3164;method_13901(Lnet/minecraft/class_2168;Lnet/minecraft/class_3162;Lnet/minecraft/class_2487;)I
      named executeMerge Lnet/minecraft/server/command/DataCommand;executeMerge(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/DataCommandObject;Lnet/minecraft/nbt/NbtCompound;)I