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.

@FunctionalInterface public static interface BrigadierCommandRegistry.BrigadierArgumentResolver<S>
Resolves Brigadier argument shape for a command argument.
  • 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