Interface FlagRegistrar<S extends CommandSource>

Type Parameters:
S - the type of source that extends the CommandSource class, representing the origin or context of the command (e.g., a user, a system, etc.).
All Known Subinterfaces:
FlagExtractor<S>

public interface FlagRegistrar<S extends CommandSource>
The FlagRegistrar interface is responsible for managing the registration and retrieval of free flags in the Imperat command framework. Free flags are flags that can be used anywhere in the command syntax, without being tied to a specific position or index.
  • Method Details

    • getRegisteredFlags

      Set<FlagArgument<S>> getRegisteredFlags()
      Retrieves all registered flags in the system.
      Returns:
      a Set containing all FlagData objects that have been registered.
    • isFlagRegistered

      default boolean isFlagRegistered(String flagName)