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