Interface ArgumentResolver<T>

Type Parameters:
T - resolved type
All Known Subinterfaces:
BlockPositionResolver, EntitySelectorArgumentResolver, PlayerProfileListResolver, PlayerSelectorArgumentResolver, SelectorArgumentResolver<T>

@Experimental @NonExtendable public interface ArgumentResolver<T>
An ArgumentResolver is capable of resolving an argument value using a CommandSourceStack.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Resolves the argument with the given command source stack.
  • Method Details

    • resolve

      @NotNull T resolve(@NotNull @NotNull CommandSourceStack sourceStack) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Resolves the argument with the given command source stack.
      Parameters:
      sourceStack - source stack
      Returns:
      resolved
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException