Class UserRefParser
java.lang.Object
dev.sympho.modular_commands.utils.parse.entity.EntityRefParser<EntityRef.UserRef>
dev.sympho.modular_commands.utils.parse.entity.UserRefParser
- All Implemented Interfaces:
ParserFunction<String,,EntityRef.UserRef> BiFunction<CommandContext,String, Mono<EntityRef.UserRef>>
A parser that extracts a user reference from a string.
- Since:
- 1.0
- Version:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.sympho.modular_commands.api.command.parameter.parse.ParserFunction
ParserFunction.PostParser<R extends @NonNull Object,I extends @NonNull Object, T extends @NonNull Object, P1 extends @NonNull ParserFunction<R, I>, P2 extends @NonNull ParserFunction<I, T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EntityRef.UserRefmakeRef(CommandContext context, Snowflake id) Creates the reference.Methods inherited from class dev.sympho.modular_commands.utils.parse.entity.EntityRefParser
parse, parseRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThenMethods inherited from interface dev.sympho.modular_commands.api.command.parameter.parse.ParserFunction
apply, then
-
Constructor Details
-
UserRefParser
public UserRefParser()Creates a new instance.
-
-
Method Details
-
makeRef
Description copied from class:EntityRefParserCreates the reference.- Specified by:
makeRefin classEntityRefParser<EntityRef.UserRef>- Parameters:
context- The execution context.id- The parsed ID.- Returns:
- The created reference.
-