Interface ForwardingAudience

All Superinterfaces:
Audience
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 interface ForwardingAudience extends Audience
An audience that forwards all operations to a collection of sub audiences.
  • Method Details

    • getAudiences

      Iterable<Audience> getAudiences()
      Description copied from interface: Audience
      Returns the audiences this audience forwards to.
      Specified by:
      getAudiences in interface Audience
    • toStream

      default Stream<Audience> toStream()
      Description copied from interface: Audience
      Returns the audiences this audience forwards to as a stream.
      Specified by:
      toStream in interface Audience
    • sendMessage

      default void sendMessage(Component component)
      Description copied from interface: Audience
      Sends a message to this audience.
      Specified by:
      sendMessage in interface Audience
      Parameters:
      component - the message
    • sendMessage

      default void sendMessage(Component component, Component unformatted, Audience sender)
      Description copied from interface: Audience
      Sends a message to this audience.
      Specified by:
      sendMessage in interface Audience
      Parameters:
      component - the message
      unformatted - the unformatted message
      sender - the sender
    • sendWarning

      default void sendWarning(Component component)
      Description copied from interface: Audience
      Sends a warning to this audience.
      Specified by:
      sendWarning in interface Audience
      Parameters:
      component - the warning
    • showHUDText

      default void showHUDText(Component component)
      Description copied from interface: Audience
      Shows a HUD text to this audience.
      Specified by:
      showHUDText in interface Audience
      Parameters:
      component - the HUD text
    • hideHUDText

      default void hideHUDText()
      Description copied from interface: Audience
      Hides the HUD text of this audience.
      Specified by:
      hideHUDText in interface Audience
    • sendNotification

      default void sendNotification(Component component, char icon)
      Description copied from interface: Audience
      Sends a notification to this audience.
      Specified by:
      sendNotification in interface Audience
      Parameters:
      component - the notification
      icon - the icon
    • sendAnnouncement

      default void sendAnnouncement(Component component)
      Description copied from interface: Audience
      Sends an announcement to this audience.
      Specified by:
      sendAnnouncement in interface Audience
      Parameters:
      component - the announcement
    • openURI

      default void openURI(URI uri)
      Description copied from interface: Audience
      Sends an uri to open to this audience.
      Specified by:
      openURI in interface Audience
      Parameters:
      uri - the uri
    • showLabel

      default void showLabel(Component label, float x, float y, Duration duration)
      Description copied from interface: Audience
      Shows a label to this audience.
      Specified by:
      showLabel in interface Audience
      Parameters:
      label - the label
      x - the x position in world coordinates
      y - the y position in world coordinates
      duration - the duration
    • kick

      default void kick(Component reason, Duration duration)
      Description copied from interface: Audience
      Kicks this audience from the server.
      Specified by:
      kick in interface Audience
      Parameters:
      reason - the reason
      duration - the duration