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 interfaceDataCommand.ModifyArgumentCreator(package private) static interfaceDataCommand.ModifyOperationstatic interfaceDataCommand.ObjectType -
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeGET_INVALID_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeGET_MULTIPLE_EXCEPTIONprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeGET_UNKNOWN_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeMERGE_FAILED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeMODIFY_EXPECTED_LIST_EXCEPTIONprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeMODIFY_EXPECTED_OBJECT_EXCEPTIONprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeMODIFY_INVALID_INDEX_EXCEPTIONstatic List<Function<String,DataCommand.ObjectType>>OBJECT_TYPE_FACTORIESstatic List<DataCommand.ObjectType>SOURCE_OBJECT_TYPESstatic 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 intexecuteGet(ServerCommandSource source, DataCommandObject object)private static intexecuteGet(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path)private static intexecuteGet(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path, double scale)private static intexecuteInsert(int integer, CompoundTag sourceTag, NbtPathArgumentType.NbtPath path, List<Tag> tags)private static intexecuteMerge(ServerCommandSource source, DataCommandObject object, CompoundTag tag)private static intexecuteModify(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, DataCommand.ObjectType objectType, DataCommand.ModifyOperation modifier, List<Tag> tags)private static intexecuteRemove(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path)private static TaggetTag(NbtPathArgumentType.NbtPath path, DataCommandObject object)static voidregister(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
-