Package net.minecraft.server.command
Class DataCommand
java.lang.Object
net.minecraft.server.command.DataCommand
public class DataCommand extends Object
-
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 -
GET_INVALID_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType GET_INVALID_EXCEPTION -
GET_UNKNOWN_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType GET_UNKNOWN_EXCEPTION -
GET_MULTIPLE_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType GET_MULTIPLE_EXCEPTION -
MODIFY_EXPECTED_LIST_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType MODIFY_EXPECTED_LIST_EXCEPTION -
MODIFY_EXPECTED_OBJECT_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType MODIFY_EXPECTED_OBJECT_EXCEPTION -
MODIFY_INVALID_INDEX_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType MODIFY_INVALID_INDEX_EXCEPTION -
OBJECT_TYPE_FACTORIES
-
TARGET_OBJECT_TYPES
-
SOURCE_OBJECT_TYPES
-
-
Constructor Details
-
DataCommand
public DataCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
executeInsert
private static int executeInsert(int integer, CompoundTag sourceTag, NbtPathArgumentType.NbtPath path, List<Tag> tags) -
addModifyArgument
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?> addModifyArgument(BiConsumer<com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?>,DataCommand.ModifyArgumentCreator> subArgumentAdder) -
executeModify
private static int executeModify(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, DataCommand.ObjectType objectType, DataCommand.ModifyOperation modifier, List<Tag> tags) -
executeRemove
private static int executeRemove(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getTag
private static Tag getTag(NbtPathArgumentType.NbtPath path, DataCommandObject object) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeGet
private static int executeGet(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
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
-
executeGet
private static int executeGet(ServerCommandSource source, DataCommandObject object) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeMerge
private static int executeMerge(ServerCommandSource source, DataCommandObject object, CompoundTag tag) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-