Package net.minecraft.command.impl.data
Class DataCommand
java.lang.Object
net.minecraft.command.impl.data.DataCommand
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
(package private) static interface
(package private) static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final List<Function<String,
DataCommand.IDataProvider>> 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.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final List<DataCommand.IDataProvider>
static final List<DataCommand.IDataProvider>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,
?> decorateModification
(BiConsumer<com.mojang.brigadier.builder.ArgumentBuilder<CommandSource, ?>, DataCommand.IModificationSourceArgumentBuilder> p_218935_0_) private static int
getData
(CommandSource p_198947_0_, IDataAccessor p_198947_1_) private static int
getData
(CommandSource p_201228_0_, IDataAccessor p_201228_1_, NBTPathArgument.NBTPath p_201228_2_) private static int
getNumeric
(CommandSource p_198938_0_, IDataAccessor p_198938_1_, NBTPathArgument.NBTPath p_198938_2_, double p_198938_3_) private static INBT
getSingleTag
(NBTPathArgument.NBTPath p_218928_0_, IDataAccessor p_218928_1_) private static int
insertAtIndex
(int p_218944_0_, CompoundNBT p_218944_1_, NBTPathArgument.NBTPath p_218944_2_, List<INBT> p_218944_3_) private static int
manipulateData
(com.mojang.brigadier.context.CommandContext<CommandSource> p_218933_0_, DataCommand.IDataProvider p_218933_1_, DataCommand.IModificationType p_218933_2_, List<INBT> p_218933_3_) private static int
mergeData
(CommandSource p_198946_0_, IDataAccessor p_198946_1_, CompoundNBT p_198946_2_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198937_0_) private static int
removeData
(CommandSource p_198942_0_, IDataAccessor p_198942_1_, NBTPathArgument.NBTPath p_198942_2_)
-
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_LIST
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_EXPECTED_LIST -
ERROR_EXPECTED_OBJECT
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_EXPECTED_OBJECT -
ERROR_INVALID_INDEX
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_INDEX -
ALL_PROVIDERS
-
TARGET_PROVIDERS
-
SOURCE_PROVIDERS
-
-
Constructor Details
-
DataCommand
public DataCommand()
-
-
Method Details
-
register
-
insertAtIndex
private static int insertAtIndex(int p_218944_0_, CompoundNBT p_218944_1_, NBTPathArgument.NBTPath p_218944_2_, List<INBT> p_218944_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
decorateModification
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> decorateModification(BiConsumer<com.mojang.brigadier.builder.ArgumentBuilder<CommandSource, ?>, DataCommand.IModificationSourceArgumentBuilder> p_218935_0_) -
manipulateData
private static int manipulateData(com.mojang.brigadier.context.CommandContext<CommandSource> p_218933_0_, DataCommand.IDataProvider p_218933_1_, DataCommand.IModificationType p_218933_2_, List<INBT> p_218933_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
removeData
private static int removeData(CommandSource p_198942_0_, IDataAccessor p_198942_1_, NBTPathArgument.NBTPath p_198942_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getSingleTag
private static INBT getSingleTag(NBTPathArgument.NBTPath p_218928_0_, IDataAccessor p_218928_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getData
private static int getData(CommandSource p_201228_0_, IDataAccessor p_201228_1_, NBTPathArgument.NBTPath p_201228_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getNumeric
private static int getNumeric(CommandSource p_198938_0_, IDataAccessor p_198938_1_, NBTPathArgument.NBTPath p_198938_2_, double p_198938_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getData
private static int getData(CommandSource p_198947_0_, IDataAccessor p_198947_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
mergeData
private static int mergeData(CommandSource p_198946_0_, IDataAccessor p_198946_1_, CompoundNBT p_198946_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-