Enum SuggestionsType

java.lang.Object
java.lang.Enum<SuggestionsType>
org.incendo.cloud.brigadier.suggestion.SuggestionsType
All Implemented Interfaces:
Serializable, Comparable<SuggestionsType>

@API(status=INTERNAL, since="2.0.0") public enum SuggestionsType extends Enum<SuggestionsType>
Determines how suggestions are retrieved for an argument.
  • Enum Constant Details

    • BRIGADIER_SUGGESTIONS

      public static final SuggestionsType BRIGADIER_SUGGESTIONS
      Brigadier will be invoked for suggestions.
    • CLOUD_SUGGESTIONS

      public static final SuggestionsType CLOUD_SUGGESTIONS
      Cloud will be invoked for suggestions.
  • Method Details

    • values

      public static SuggestionsType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SuggestionsType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null