Interface DataCommands.DataProvider
- Enclosing class:
DataCommands
public static interface DataCommands.DataProvider
-
Method Summary
Modifier and TypeMethodDescriptionaccess
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext) Creates an accessor based on the command context.com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> wrap
(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> pBuilder, Function<com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>> pAction) Creates an argument used for accessing data related to this type of thing, including a literal to distinguish from other types.
-
Method Details
-
access
DataAccessor access(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext) throws com.mojang.brigadier.exceptions.CommandSyntaxException Creates an accessor based on the command context. This should only refer to arguments registered ininvalid reference
createArgument
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
wrap
com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> wrap(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> pBuilder, Function<com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>> pAction) Creates an argument used for accessing data related to this type of thing, including a literal to distinguish from other types.
-