Class SpeakerSelector<C>
java.lang.Object
cloud.commandframework.arguments.CommandArgument<C,Speaker>
rocks.gravili.notquests.spigot.commands.arguments.SpeakerSelector<C>
- All Implemented Interfaces:
cloud.commandframework.keys.CloudKeyHolder<Speaker>,Comparable<cloud.commandframework.arguments.CommandArgument<?,?>>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSpeakerSelector(boolean required, @NonNull String name, @NonNull String defaultValue, @Nullable BiFunction<@NonNull cloud.commandframework.context.CommandContext<C>, @NonNull String, @NonNull List<@NonNull String>> suggestionsProvider, @NonNull cloud.commandframework.ArgumentDescription defaultDescription, NotQuests main, String conversationContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic <C> @NonNull SpeakerSelector.Builder<C>newBuilder(@NonNull String name, NotQuests main, String conversationContext) static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,Speaker> static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,Speaker> optional(@NonNull String name, @NonNull Speaker speaker, NotQuests main, String conversationContext) static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,Speaker> Methods inherited from class cloud.commandframework.arguments.CommandArgument
addPreprocessor, compareTo, copy, equals, getDefaultDescription, getDefaultValue, getKey, getName, getOwningCommand, getParser, getSuggestionsProvider, getValueType, hasDefaultValue, hashCode, isArgumentRegistered, isRequired, ofType, ofType, preprocess, setArgumentRegistered, setOwningCommand, toString
-
Constructor Details
-
SpeakerSelector
protected SpeakerSelector(boolean required, @NonNull String name, @NonNull String defaultValue, @Nullable BiFunction<@NonNull cloud.commandframework.context.CommandContext<C>, @NonNull String, @NonNull List<@NonNull String>> suggestionsProvider, @NonNull cloud.commandframework.ArgumentDescription defaultDescription, NotQuests main, String conversationContext)
-
-
Method Details
-
newBuilder
public static <C> @NonNull SpeakerSelector.Builder<C> newBuilder(@NonNull String name, NotQuests main, String conversationContext) -
of
-
optional
-
optional
-