Class DataCommands
java.lang.Object
net.minecraft.server.commands.data.DataCommands
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface(package private) static interfacestatic interface(package private) static interface - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<Function<String,DataCommands.DataProvider>> private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final List<DataCommands.DataProvider>static final List<DataCommands.DataProvider> - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> decorateModification(BiConsumer<com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>, DataCommands.DataManipulatorDecorator> p_139404_) private static Stringprivate static intgetData(CommandSourceStack p_139383_, DataAccessor p_139384_) private static intgetData(CommandSourceStack p_139444_, DataAccessor p_139445_, NbtPathArgument.NbtPath p_139446_) private static intgetNumeric(CommandSourceStack p_139390_, DataAccessor p_139391_, NbtPathArgument.NbtPath p_139392_, double p_139393_) private static intgetOffset(int p_287638_, int p_287600_) static TaggetSingleTag(NbtPathArgument.NbtPath p_139399_, DataAccessor p_139400_) getSingletonSource(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_265108_, DataCommands.DataProvider p_265370_) private static intmanipulateData(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_139376_, DataCommands.DataProvider p_139377_, DataCommands.DataManipulator p_139378_, List<Tag> p_139379_) private static intmergeData(CommandSourceStack p_139395_, DataAccessor p_139396_, CompoundTag p_139397_) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_139366_) private static intremoveData(CommandSourceStack p_139386_, DataAccessor p_139387_, NbtPathArgument.NbtPath p_139388_) resolveSourcePath(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_265468_, DataCommands.DataProvider p_265670_) stringifyTagList(List<Tag> p_288980_, DataCommands.StringProcessor p_289012_) private static Stringprivate static Stringprivate static StringvalidatedSubstring(String p_288976_, int p_288968_, int p_289018_)  
- 
Field Details
- 
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
 
 - 
 - 
Constructor Details
- 
DataCommands
public DataCommands() 
 - 
 - 
Method Details
- 
register
 - 
getAsText
private static String getAsText(Tag p_265255_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 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 - Throws:
 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 - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
substring
private static String substring(String p_287625_, int p_287772_, int p_287598_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
substring
private static String substring(String p_287744_, int p_287741_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
getOffset
private static int getOffset(int p_287638_, int p_287600_)  - 
getSingletonSource
private static List<Tag> getSingletonSource(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_265108_, DataCommands.DataProvider p_265370_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
resolveSourcePath
private static List<Tag> resolveSourcePath(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_265468_, DataCommands.DataProvider p_265670_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
manipulateData
private static int manipulateData(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_139376_, DataCommands.DataProvider p_139377_, DataCommands.DataManipulator p_139378_, List<Tag> p_139379_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
removeData
private static int removeData(CommandSourceStack p_139386_, DataAccessor p_139387_, NbtPathArgument.NbtPath p_139388_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
getSingleTag
public static Tag getSingleTag(NbtPathArgument.NbtPath p_139399_, DataAccessor p_139400_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
getData
private static int getData(CommandSourceStack p_139444_, DataAccessor p_139445_, NbtPathArgument.NbtPath p_139446_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
getNumeric
private static int getNumeric(CommandSourceStack p_139390_, DataAccessor p_139391_, NbtPathArgument.NbtPath p_139392_, double p_139393_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
getData
private static int getData(CommandSourceStack p_139383_, DataAccessor p_139384_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
mergeData
private static int mergeData(CommandSourceStack p_139395_, DataAccessor p_139396_, CompoundTag p_139397_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 
 -