Package net.minecraft.commands.arguments
Interface PreviewedArgument<T>
- All Superinterfaces:
com.mojang.brigadier.arguments.ArgumentType<T>
- All Known Subinterfaces:
SignedArgument<T>
- All Known Implementing Classes:
MessageArgument
public interface PreviewedArgument<T>
extends com.mojang.brigadier.arguments.ArgumentType<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture<Component>
resolvePreview
(CommandSourceStack p_242896_, com.mojang.brigadier.context.ParsedArgument<CommandSourceStack, ?> p_242879_) resolvePreview
(CommandSourceStack p_232864_, T p_232865_) Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples, listSuggestions, parse
-
Method Details
-
resolvePreview
@Nullable default CompletableFuture<Component> resolvePreview(CommandSourceStack p_242896_, com.mojang.brigadier.context.ParsedArgument<CommandSourceStack, ?> p_242879_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
resolvePreview
CompletableFuture<Component> resolvePreview(CommandSourceStack p_232864_, T p_232865_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getValueType
-