Interface AudienceProvider


public interface AudienceProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    net.kyori.adventure.audience.Audience
    Gets the console Audience.
    @Nullable net.kyori.adventure.audience.Audience
    Gets the player Audience for UUID.
    net.kyori.adventure.audience.Audience
    getSender(Object sender)
    Gets the sender Audience.
  • Method Details

    • getPlayer

      @Nullable net.kyori.adventure.audience.Audience getPlayer(UUID uuid)
      Gets the player Audience for UUID.
      Parameters:
      uuid - The player uuid
      Returns:
      The audience, if available
    • getConsole

      net.kyori.adventure.audience.Audience getConsole()
      Gets the console Audience.
      Returns:
      The audience
    • getSender

      net.kyori.adventure.audience.Audience getSender(Object sender)
      Gets the sender Audience. Note: The sender should be a command source of the platform.
      Parameters:
      sender - The sender
      Returns:
      The audience