Interface ArgumentResolver<T>

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

@Experimental @NullMarked @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

      T resolve(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