Class QuestSelector<C>
java.lang.Object
cloud.commandframework.arguments.CommandArgument<C,Quest>
rocks.gravili.notquests.spigot.commands.arguments.QuestSelector<C>
- All Implemented Interfaces:
cloud.commandframework.keys.CloudKeyHolder<Quest>
,Comparable<cloud.commandframework.arguments.CommandArgument<?,
?>>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
ModifierConstructorDescriptionprotected
QuestSelector
(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, boolean takeEnabledOnly) -
Method Summary
Modifier and TypeMethodDescription@org.checkerframework.checker.nullness.qual.NonNull boolean
static <C> @NonNull QuestSelector.Builder<C>
newBuilder
(@NonNull String name, NotQuests main) static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,
Quest> static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,
Quest> static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,
Quest> 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
-
QuestSelector
protected QuestSelector(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, boolean takeEnabledOnly)
-
-
Method Details
-
newBuilder
public static <C> @NonNull QuestSelector.Builder<C> newBuilder(@NonNull String name, NotQuests main) -
of
-
optional
-
optional
-
isTakeEnabledOnly
public @org.checkerframework.checker.nullness.qual.NonNull boolean isTakeEnabledOnly()
-