public class DataCommand extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
DataCommand.ModifyArgumentCreator |
(package private) static interface |
DataCommand.ModifyOperation |
static interface |
DataCommand.ObjectType |
Modifier and Type | Field and 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 and Description |
---|
DataCommand() |
Modifier and Type | Method and 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) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MERGE_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType GET_INVALID_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType GET_UNKNOWN_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType GET_MULTIPLE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType MODIFY_EXPECTED_LIST_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType MODIFY_EXPECTED_OBJECT_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType MODIFY_INVALID_INDEX_EXCEPTION
public static final List<Function<String,DataCommand.ObjectType>> OBJECT_TYPE_FACTORIES
public static final List<DataCommand.ObjectType> TARGET_OBJECT_TYPES
public static final List<DataCommand.ObjectType> SOURCE_OBJECT_TYPES
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static int executeInsert(int integer, CompoundTag sourceTag, NbtPathArgumentType.NbtPath path, List<Tag> tags)
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?> addModifyArgument(BiConsumer<com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?>,DataCommand.ModifyArgumentCreator> subArgumentAdder)
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) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static Tag getTag(NbtPathArgumentType.NbtPath path, DataCommandObject object) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int executeGet(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int executeGet(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path, double scale) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int executeGet(ServerCommandSource source, DataCommandObject object) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int executeMerge(ServerCommandSource source, DataCommandObject object, CompoundTag tag) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException