Interface ArgumentResolver<T>
- Type Parameters:
T- resolved type
- All Known Subinterfaces:
BlockPosResolver, EntitySelectorArgumentResolver, PlayerProfileListResolver, PlayerSelectorArgumentResolver, PositionResolver, SelectorArgumentResolver<T>
- All Known Implementing Classes:
SelectorArgumentResolver
@NonExtendable
public interface ArgumentResolver<T>
An
ArgumentResolver is capable of resolving
an argument value using a CommandSource.-
Method Summary
Modifier and TypeMethodDescriptionresolve(CommandSource source) Resolves the argument with the given command source.
-
Method Details
-
resolve
Resolves the argument with the given command source.- Parameters:
source- source- Returns:
- resolved
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- if an error occurs while parsing
-