Interface PlayerProfilesResolver
- All Superinterfaces:
ArgumentResolver<List<PlayerProfile>>
- 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 non-sealed interface PlayerProfilesResolver
extends ArgumentResolver<List<PlayerProfile>>
Resolves the profiles of the players matched by a selector or name.
- Since:
- 0.1.0
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic List<PlayerProfile> playerProfiles(com.mojang.brigadier.context.CommandContext<CommandSource> context, String name) Returns the player profiles argumentnamematches for the source ofcontext.Methods inherited from interface ArgumentResolver
resolve
-
Method Details
-
playerProfiles
static List<PlayerProfile> playerProfiles(com.mojang.brigadier.context.CommandContext<CommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException Returns the player profiles argumentnamematches for the source ofcontext.- Parameters:
context- the command contextname- the argument name- Returns:
- the player profiles argument
namematches for the source ofcontext - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- if it can't be resolved for the source- Since:
- 0.1.0
-