Interface FlagArgument<S extends CommandSource>

All Superinterfaces:
Argument<S>, DescriptionHolder, PermissionHolder
All Known Implementing Classes:
FlagArgumentImpl

public interface FlagArgument<S extends CommandSource> extends Argument<S>
  • Method Details

    • flagData

      @NotNull @NotNull FlagData<S> flagData()
      Returns:
      The flag's data
    • inputValueType

      default Type inputValueType()
      Returns:
      The valueType of input value
    • inputSuggestionResolver

      @Nullable @Nullable SuggestionProvider<S> inputSuggestionResolver()
      Returns:
      the SuggestionProvider for input value of this flag null if the flag is switch, check using isSwitch()
    • isFlag

      default boolean isFlag()
      Specified by:
      isFlag in interface Argument<S extends CommandSource>
      Returns:
      checks whether this parameter is a flag
    • isSwitch

      default boolean isSwitch()