Interface CommandTokenSupplier<T extends CommandToken>

Type Parameters:
T - the type of the command token
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @AvailableSince("0.0.37") public interface CommandTokenSupplier<T extends CommandToken>
Command token supplier
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(int from, int to, String text)
    Create a new command token
  • Method Details

    • apply

      T apply(int from, int to, String text)
      Create a new command token
      Parameters:
      from - starting index
      to - ending index
      text - the entire command
      Returns:
      the new command token