Package net.minecraft.server.command
Class DataCommand
java.lang.Object
net.minecraft.server.command.DataCommand
- Mappings:
Namespace Name official agy
intermediary net/minecraft/class_3164
named net/minecraft/server/command/DataCommand
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static interface
private static interface
static interface
private static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
static final List<Function<String,
DataCommand.ObjectType>> static final List<DataCommand.ObjectType>
static final List<DataCommand.ObjectType>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> addModifyArgument
(BiConsumer<com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>, DataCommand.ModifyArgumentCreator> subArgumentAdder) private static String
asString
(NbtElement nbt) private static int
executeGet
(ServerCommandSource source, DataCommandObject object) private static int
executeGet
(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path) private static int
executeGet
(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path, double scale) private static int
executeMerge
(ServerCommandSource source, DataCommandObject object, NbtCompound nbt) private static int
executeModify
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, DataCommand.ObjectType objectType, DataCommand.ModifyOperation modifier, List<NbtElement> elements) private static int
executeRemove
(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path) private static NbtElement
getNbt
(NbtPathArgumentType.NbtPath path, DataCommandObject object) private static int
getSubstringIndex
(int index, int length) private static List<NbtElement>
getValues
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, DataCommand.ObjectType objectType) private static List<NbtElement>
getValuesByPath
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, DataCommand.ObjectType objectType) private static List<NbtElement>
mapValues
(List<NbtElement> list, DataCommand.Processor processor) static void
register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) private static String
private static String
private static String
substringInternal
(String string, int startIndex, int endIndex)
-
Field Details
-
MERGE_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MERGE_FAILED_EXCEPTION- Mappings:
Namespace Name Mixin selector official d
Lagy;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
Lagy;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
Lagy;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
Lagy;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
Lagy;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
Lagy;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;
-
MODIFY_INVALID_SUBSTRING_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType MODIFY_INVALID_SUBSTRING_EXCEPTION- Mappings:
Namespace Name Mixin selector official j
Lagy;j:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
intermediary field_44916
Lnet/minecraft/class_3164;field_44916:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
named MODIFY_INVALID_SUBSTRING_EXCEPTION
Lnet/minecraft/server/command/DataCommand;MODIFY_INVALID_SUBSTRING_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
OBJECT_TYPE_FACTORIES
- Mappings:
Namespace Name Mixin selector official a
Lagy;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
- Mappings:
Namespace Name Mixin selector official b
Lagy;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
- Mappings:
Namespace Name Mixin selector official c
Lagy;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
- Mappings:
Namespace Name Mixin selector official a
Lagy;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
Lagy;a(Lrk;)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, DataCommand.Processor processor) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lagy;a(Ljava/util/List;Lagy$d;)Ljava/util/List;
intermediary method_48095
Lnet/minecraft/class_3164;method_48095(Ljava/util/List;Lnet/minecraft/class_3164$class_8569;)Ljava/util/List;
named mapValues
Lnet/minecraft/server/command/DataCommand;mapValues(Ljava/util/List;Lnet/minecraft/server/command/DataCommand$Processor;)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
Lagy;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;
-
substringInternal
private static String substringInternal(String string, int startIndex, int endIndex) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lagy;a(Ljava/lang/String;II)Ljava/lang/String;
intermediary method_52165
Lnet/minecraft/class_3164;method_52165(Ljava/lang/String;II)Ljava/lang/String;
named substringInternal
Lnet/minecraft/server/command/DataCommand;substringInternal(Ljava/lang/String;II)Ljava/lang/String;
-
substring
private static String substring(String string, int startIndex, int endIndex) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official b
Lagy;b(Ljava/lang/String;II)Ljava/lang/String;
intermediary method_51826
Lnet/minecraft/class_3164;method_51826(Ljava/lang/String;II)Ljava/lang/String;
named substring
Lnet/minecraft/server/command/DataCommand;substring(Ljava/lang/String;II)Ljava/lang/String;
-
substring
private static String substring(String string, int startIndex) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lagy;a(Ljava/lang/String;I)Ljava/lang/String;
intermediary method_51825
Lnet/minecraft/class_3164;method_51825(Ljava/lang/String;I)Ljava/lang/String;
named substring
Lnet/minecraft/server/command/DataCommand;substring(Ljava/lang/String;I)Ljava/lang/String;
-
getSubstringIndex
private static int getSubstringIndex(int index, int length) - Mappings:
Namespace Name Mixin selector official a
Lagy;a(II)I
intermediary method_51824
Lnet/minecraft/class_3164;method_51824(II)I
named getSubstringIndex
Lnet/minecraft/server/command/DataCommand;getSubstringIndex(II)I
-
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
Lagy;a(Lcom/mojang/brigadier/context/CommandContext;Lagy$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
Lagy;b(Lcom/mojang/brigadier/context/CommandContext;Lagy$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
Lagy;a(Lcom/mojang/brigadier/context/CommandContext;Lagy$c;Lagy$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
Lagy;a(Lds;Lagx;Leh$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
Lagy;a(Leh$g;Lagx;)Lrk;
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
Lagy;b(Lds;Lagx;Leh$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
Lagy;a(Lds;Lagx;Leh$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
Lagy;a(Lds;Lagx;)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
Lagy;a(Lds;Lagx;Lqr;)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
-