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.
An audience that forwards all operations to a collection of sub audiences.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the audiences this audience forwards to.default voidHides the HUD text of this audience.default voidkick(ComponentLike reason, Duration duration) Kicks this audience from the server.default voidSends an uri to open to this audience.default voidsendAnnouncement(ComponentLike component) Sends an announcement to this audience.default voidsendMessage(ComponentLike component) Sends a message to this audience.default voidsendMessage(ComponentLike component, ComponentLike unformatted, Audience sender) Sends a message to this audience.default voidsendNotification(ComponentLike component, char icon) Sends a notification to this audience.default voidsendWarning(ComponentLike component) Sends a warning to this audience.default voidshowHUDText(ComponentLike component) Shows a HUD text to this audience.default voidshowLabel(ComponentLike label, float x, float y, Duration duration) Shows a label to this audience.toStream()Returns the audiences this audience forwards to as a stream.Methods inherited from interface com.xpdustry.distributor.api.audience.Audience
getMetadata, getPermissions
-
Method Details
-
getAudiences
Description copied from interface:AudienceReturns the audiences this audience forwards to.- Specified by:
getAudiencesin interfaceAudience
-
toStream
Description copied from interface:AudienceReturns the audiences this audience forwards to as a stream. -
sendMessage
Description copied from interface:AudienceSends a message to this audience.- Specified by:
sendMessagein interfaceAudience- Parameters:
component- the message
-
sendMessage
Description copied from interface:AudienceSends a message to this audience.- Specified by:
sendMessagein interfaceAudience- Parameters:
component- the messageunformatted- the unformatted messagesender- the sender
-
sendWarning
Description copied from interface:AudienceSends a warning to this audience.- Specified by:
sendWarningin interfaceAudience- Parameters:
component- the warning
-
showHUDText
Description copied from interface:AudienceShows a HUD text to this audience.- Specified by:
showHUDTextin interfaceAudience- Parameters:
component- the HUD text
-
hideHUDText
default void hideHUDText()Description copied from interface:AudienceHides the HUD text of this audience.- Specified by:
hideHUDTextin interfaceAudience
-
sendNotification
Description copied from interface:AudienceSends a notification to this audience.- Specified by:
sendNotificationin interfaceAudience- Parameters:
component- the notificationicon- the icon
-
sendAnnouncement
Description copied from interface:AudienceSends an announcement to this audience.- Specified by:
sendAnnouncementin interfaceAudience- Parameters:
component- the announcement
-
openURI
Description copied from interface:AudienceSends an uri to open to this audience. -
showLabel
Description copied from interface:AudienceShows a label to this audience. -
kick
Description copied from interface:AudienceKicks this audience from the server.
-