Interface BrigadierCommandRegistry.BrigadierArgumentResolver<S>
- Type Parameters:
S- command source type
- Enclosing class:
BrigadierCommandRegistry<S>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Resolves Brigadier argument shape for a command argument.
-
Method Summary
Modifier and TypeMethodDescriptiondefault intpriority()Higher priority resolvers run first.resolve(@NotNull CommandArgument argument) Returns a Brigadier shape for the argument or null when unsupported.
-
Method Details
-
resolve
@Nullable @Nullable BrigadierCommandRegistry.BrigadierArgumentShape resolve(@NotNull @NotNull CommandArgument argument) Returns a Brigadier shape for the argument or null when unsupported.- Parameters:
argument- command argument metadata- Returns:
- argument shape or null
-
priority
default int priority()Higher priority resolvers run first.- Returns:
- resolver priority
-