Package net.minecraft.server.command
Class DataCommand
java.lang.Object
net.minecraft.server.command.DataCommand
public class DataCommand extends Object
- Mappings:
Namespace Name official zq
intermediary net/minecraft/class_3164
named net/minecraft/server/command/DataCommand
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interface
DataCommand.ModifyArgumentCreator
(package private) static interface
DataCommand.ModifyOperation
static interface
DataCommand.ObjectType
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
GET_INVALID_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
GET_MULTIPLE_EXCEPTION
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
GET_UNKNOWN_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
MERGE_FAILED_EXCEPTION
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
MODIFY_EXPECTED_LIST_EXCEPTION
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
MODIFY_EXPECTED_OBJECT_EXCEPTION
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
MODIFY_INVALID_INDEX_EXCEPTION
static List<Function<String,DataCommand.ObjectType>>
OBJECT_TYPE_FACTORIES
static List<DataCommand.ObjectType>
SOURCE_OBJECT_TYPES
static List<DataCommand.ObjectType>
TARGET_OBJECT_TYPES
-
Constructor Summary
Constructors Constructor Description DataCommand()
-
Method Summary
Modifier and Type Method Description private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?>
addModifyArgument(BiConsumer<com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?>,DataCommand.ModifyArgumentCreator> subArgumentAdder)
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
executeInsert(int integer, CompoundTag sourceTag, NbtPathArgumentType.NbtPath path, List<Tag> tags)
private static int
executeMerge(ServerCommandSource source, DataCommandObject object, CompoundTag tag)
private static int
executeModify(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, DataCommand.ObjectType objectType, DataCommand.ModifyOperation modifier, List<Tag> tags)
private static int
executeRemove(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path)
private static Tag
getTag(NbtPathArgumentType.NbtPath path, DataCommandObject object)
static void
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
MERGE_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MERGE_FAILED_EXCEPTION- Mappings:
Namespace Name Mixin selector official d
Lzq;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
Lzq;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
Lzq;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
Lzq;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_LIST_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType MODIFY_EXPECTED_LIST_EXCEPTION- Mappings:
Namespace Name Mixin selector official h
Lzq;h:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_13795
Lnet/minecraft/class_3164;field_13795:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named MODIFY_EXPECTED_LIST_EXCEPTION
Lnet/minecraft/server/command/DataCommand;MODIFY_EXPECTED_LIST_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
MODIFY_EXPECTED_OBJECT_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType MODIFY_EXPECTED_OBJECT_EXCEPTION- Mappings:
Namespace Name Mixin selector official i
Lzq;i: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_INVALID_INDEX_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType MODIFY_INVALID_INDEX_EXCEPTION- Mappings:
Namespace Name Mixin selector official j
Lzq;j:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_17441
Lnet/minecraft/class_3164;field_17441:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named MODIFY_INVALID_INDEX_EXCEPTION
Lnet/minecraft/server/command/DataCommand;MODIFY_INVALID_INDEX_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
OBJECT_TYPE_FACTORIES
- Mappings:
Namespace Name Mixin selector official a
Lzq;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
Lzq;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
Lzq;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
Lzq;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
-
executeInsert
private static int executeInsert(int integer, CompoundTag sourceTag, NbtPathArgumentType.NbtPath path, List<Tag> tags) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lzq;a(ILmq;Ldr$g;Ljava/util/List;)I
intermediary method_13910
Lnet/minecraft/class_3164;method_13910(ILnet/minecraft/class_2487;Lnet/minecraft/class_2203$class_2209;Ljava/util/List;)I
named executeInsert
Lnet/minecraft/server/command/DataCommand;executeInsert(ILnet/minecraft/nbt/CompoundTag;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;Ljava/util/List;)I
-
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
Lzq;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;
-
executeModify
private static int executeModify(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, DataCommand.ObjectType objectType, DataCommand.ModifyOperation modifier, List<Tag> tags) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lzq;a(Lcom/mojang/brigadier/context/CommandContext;Lzq$c;Lzq$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
Lzq;a(Ldb;Lzp;Ldr$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
-
getTag
private static Tag getTag(NbtPathArgumentType.NbtPath path, DataCommandObject object) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lzq;a(Ldr$g;Lzp;)Lni;
intermediary method_13921
Lnet/minecraft/class_3164;method_13921(Lnet/minecraft/class_2203$class_2209;Lnet/minecraft/class_3162;)Lnet/minecraft/class_2520;
named getTag
Lnet/minecraft/server/command/DataCommand;getTag(Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;Lnet/minecraft/command/DataCommandObject;)Lnet/minecraft/nbt/Tag;
-
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
Lzq;b(Ldb;Lzp;Ldr$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
Lzq;a(Ldb;Lzp;Ldr$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
Lzq;a(Ldb;Lzp;)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, CompoundTag tag) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lzq;a(Ldb;Lzp;Lmq;)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/CompoundTag;)I
-