Interface ArgumentResolver<T>

Type Parameters:
T - resolved type
All Known Subinterfaces:
BlockPosResolver, EntitySelectorArgumentResolver, PlayerProfileListResolver, PlayerSelectorArgumentResolver, PositionResolver, SelectorArgumentResolver<T>
All Known Implementing Classes:
SelectorArgumentResolver

@NonExtendable public interface ArgumentResolver<T>
An ArgumentResolver is capable of resolving an argument value using a CommandSource.
  • Method Summary

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

    • resolve

      T resolve(CommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Resolves the argument with the given command source.
      Parameters:
      source - source
      Returns:
      resolved
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException - if an error occurs while parsing