Package revxrsal.commands.process
Interface ValueResolver<T>
- Type Parameters:
T
- The resolved type
public interface ValueResolver<T>
A resolver for resolving values that, by default, require data from the arguments
to resolve their value.
An example context resolver is finding a player from their name.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Represents the resolving context ofValueResolver
. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(@NotNull ValueResolver.ValueResolverContext context) Resolves the value of this resolver
-
Method Details
-
resolve
Resolves the value of this resolver- Parameters:
context
- The command resolving context.- Returns:
- The resolved value. May or may not be null.
- Throws:
Throwable
- Any exceptions that should be handled byCommandExceptionHandler
-