Interface BrigadierCommandRegistry.AudienceFactory<S>

Type Parameters:
S - command source type
Enclosing class:
BrigadierCommandRegistry<S>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface BrigadierCommandRegistry.AudienceFactory<S>
Factory for wrapping a command source into an audience.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(S source, boolean error)
    Creates an audience wrapper.
  • Method Details

    • create

      Audience create(S source, boolean error)
      Creates an audience wrapper.
      Parameters:
      source - command source
      error - whether the message is an error
      Returns:
      audience wrapper or null