类 DataCommands
java.lang.Object
net.minecraft.server.commands.data.DataCommands
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static interface
(专用程序包) static interface
static interface
(专用程序包) static interface
-
字段概要
字段修饰符和类型字段说明static final List<Function<String,
DataCommands.DataProvider>> private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final List<DataCommands.DataProvider>
static final List<DataCommands.DataProvider>
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,
?> decorateModification
(BiConsumer<com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>, DataCommands.DataManipulatorDecorator> p_139404_) private static String
private static int
getData
(CommandSourceStack pSource, DataAccessor pAccessor) private static int
getData
(CommandSourceStack pSource, DataAccessor pAccessor, NbtPathArgument.NbtPath pPath) private static int
getNumeric
(CommandSourceStack pSource, DataAccessor pAccessor, NbtPathArgument.NbtPath pPath, double pScale) private static int
getOffset
(int pIndex, int pLength) private static Tag
getSingleTag
(NbtPathArgument.NbtPath pPath, DataAccessor pAccessor) getSingletonSource
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, DataCommands.DataProvider pDataProvider) private static int
manipulateData
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pSource, DataCommands.DataProvider pDataProvider, DataCommands.DataManipulator pDataManipulator, List<Tag> pTags) private static int
mergeData
(CommandSourceStack pSource, DataAccessor pAccessor, CompoundTag pNbt) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) private static int
removeData
(CommandSourceStack pSource, DataAccessor pAccessor, NbtPathArgument.NbtPath pPath) resolveSourcePath
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, DataCommands.DataProvider pDataProvider) stringifyTagList
(List<Tag> p_288980_, DataCommands.StringProcessor p_289012_) private static String
private static String
private static String
validatedSubstring
(String p_288976_, int p_288968_, int p_289018_)
-
字段详细资料
-
ERROR_MERGE_UNCHANGED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_MERGE_UNCHANGED -
ERROR_GET_NOT_NUMBER
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_GET_NOT_NUMBER -
ERROR_GET_NON_EXISTENT
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_GET_NON_EXISTENT -
ERROR_MULTIPLE_TAGS
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_MULTIPLE_TAGS -
ERROR_EXPECTED_OBJECT
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_EXPECTED_OBJECT -
ERROR_EXPECTED_VALUE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_EXPECTED_VALUE -
ERROR_INVALID_SUBSTRING
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_INVALID_SUBSTRING -
ALL_PROVIDERS
-
TARGET_PROVIDERS
-
SOURCE_PROVIDERS
-
-
构造器详细资料
-
DataCommands
public DataCommands()
-
-
方法详细资料
-
register
-
getAsText
private static String getAsText(Tag pTag) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
stringifyTagList
private static List<Tag> stringifyTagList(List<Tag> p_288980_, DataCommands.StringProcessor p_289012_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
decorateModification
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> decorateModification(BiConsumer<com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>, DataCommands.DataManipulatorDecorator> p_139404_) -
validatedSubstring
private static String validatedSubstring(String p_288976_, int p_288968_, int p_289018_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
substring
private static String substring(String pSource, int pStart, int pEnd) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
substring
private static String substring(String pSource, int pStart) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getOffset
private static int getOffset(int pIndex, int pLength) -
getSingletonSource
private static List<Tag> getSingletonSource(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, DataCommands.DataProvider pDataProvider) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
resolveSourcePath
private static List<Tag> resolveSourcePath(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, DataCommands.DataProvider pDataProvider) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
manipulateData
private static int manipulateData(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pSource, DataCommands.DataProvider pDataProvider, DataCommands.DataManipulator pDataManipulator, List<Tag> pTags) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
removeData
private static int removeData(CommandSourceStack pSource, DataAccessor pAccessor, NbtPathArgument.NbtPath pPath) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getSingleTag
private static Tag getSingleTag(NbtPathArgument.NbtPath pPath, DataAccessor pAccessor) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getData
private static int getData(CommandSourceStack pSource, DataAccessor pAccessor, NbtPathArgument.NbtPath pPath) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getNumeric
private static int getNumeric(CommandSourceStack pSource, DataAccessor pAccessor, NbtPathArgument.NbtPath pPath, double pScale) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getData
private static int getData(CommandSourceStack pSource, DataAccessor pAccessor) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
mergeData
private static int mergeData(CommandSourceStack pSource, DataAccessor pAccessor, CompoundTag pNbt) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-