Class MiniMessageSelector<C>

java.lang.Object
cloud.commandframework.arguments.CommandArgument<C,String[]>
rocks.gravili.notquests.paper.commands.arguments.MiniMessageSelector<C>
All Implemented Interfaces:
cloud.commandframework.keys.CloudKeyHolder<String[]>, Comparable<cloud.commandframework.arguments.CommandArgument<?,?>>

public class MiniMessageSelector<C> extends cloud.commandframework.arguments.CommandArgument<C,String[]>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
    static final class 
     

    Nested classes/interfaces inherited from class cloud.commandframework.arguments.CommandArgument

    cloud.commandframework.arguments.CommandArgument.TypedBuilder<C extends Object,T extends Object,B extends cloud.commandframework.arguments.CommandArgument.Builder<C,T>>
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    MiniMessageSelector(boolean required, @NonNull String name, @NonNull String defaultValue, @NonNull BiFunction<@NonNull cloud.commandframework.context.CommandContext<C>,@NonNull String,@NonNull List<@NonNull String>> suggestionsProvider, @NonNull cloud.commandframework.ArgumentDescription defaultDescription, NotQuests main, boolean withPlaceholders)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @org.checkerframework.checker.nullness.qual.NonNull boolean
     
    static <C> @NonNull MiniMessageSelector.Builder<C>
    newBuilder(@NonNull String name, NotQuests main)
     
    static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,String[]>
    of(@NonNull String name, NotQuests main)
     
    static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,String[]>
    optional(@NonNull String name, @NonNull String command, NotQuests main)
     
    static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,String[]>
    optional(@NonNull String name, NotQuests main)
     

    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MiniMessageSelector

      protected MiniMessageSelector(boolean required, @NonNull String name, @NonNull String defaultValue, @NonNull BiFunction<@NonNull cloud.commandframework.context.CommandContext<C>,@NonNull String,@NonNull List<@NonNull String>> suggestionsProvider, @NonNull cloud.commandframework.ArgumentDescription defaultDescription, NotQuests main, boolean withPlaceholders)
  • Method Details

    • newBuilder

      public static <C> @NonNull MiniMessageSelector.Builder<C> newBuilder(@NonNull String name, NotQuests main)
    • of

      public static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,String[]> of(@NonNull String name, NotQuests main)
    • optional

      public static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,String[]> optional(@NonNull String name, NotQuests main)
    • optional

      public static <C> @NonNull cloud.commandframework.arguments.CommandArgument<C,String[]> optional(@NonNull String name, @NonNull String command, NotQuests main)
    • isWithPlaceholders

      public @org.checkerframework.checker.nullness.qual.NonNull boolean isWithPlaceholders()