Class ConversationSelector<C>
java.lang.Object
cloud.commandframework.arguments.CommandArgument<C,Conversation>
rocks.gravili.notquests.spigot.commands.arguments.ConversationSelector<C>
- All Implemented Interfaces:
cloud.commandframework.keys.CloudKeyHolder<Conversation>
,Comparable<cloud.commandframework.arguments.CommandArgument<?,
?>>
public class ConversationSelector<C>
extends cloud.commandframework.arguments.CommandArgument<C,Conversation>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
ModifierConstructorDescriptionprotected
ConversationSelector
(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) -
Method Summary
Modifier and TypeMethodDescriptionstatic <C> @NonNull ConversationSelector.Builder<C>
newBuilder
(@NonNull String name, NotQuests main) static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,
Conversation> static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,
Conversation> optional
(@NonNull String name, @NonNull Conversation conversation, NotQuests main) static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,
Conversation> 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
-
ConversationSelector
protected ConversationSelector(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)
-
-
Method Details
-
newBuilder
public static <C> @NonNull ConversationSelector.Builder<C> newBuilder(@NonNull String name, NotQuests main) -
of
public static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,Conversation> of(@NonNull String name, NotQuests main) -
optional
public static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,Conversation> optional(@NonNull String name, NotQuests main) -
optional
public static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,Conversation> optional(@NonNull String name, @NonNull Conversation conversation, NotQuests main)
-