Package studio.mevera.imperat.providers
Interface SourceProvider<S extends CommandSource,R>
- Type Parameters:
S- the default platform sourceR- the resulting source
public interface SourceProvider<S extends CommandSource,R>
An interface whose single responsibility is to resolve
SourceProvider
into SourceProvider to allow custom command sources-
Method Summary
Modifier and TypeMethodDescriptionresolve(S source, CommandContext<S> ctx) ResolvesSourceProviderintoSourceProvider
-
Method Details
-
resolve
ResolvesSourceProviderintoSourceProvider- Parameters:
source- the default source within the platformctx-- Returns:
- the resolved source
- Throws:
CommandException
-