Package net.kyori.adventure.audience
Interface ForwardingAudience
- All Superinterfaces:
- Audience
- All Known Subinterfaces:
- ForwardingAudience.Single
- 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
A receiver that wraps one or more receivers.
 
ForwardingAudience is designed to easily allow users or
 implementations wrap an existing (collection of) Audience(s).
- Since:
- 4.0.0
- See Also:
- Audience
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceForwardingAudience.SingleAn audience that forwards everything to a single other audience.
- 
Method SummaryModifier and Type Method Description @NonNull Iterable<? extends Audience>audiences()Gets the audiences.default voidclearTitle()Clears the title, if one is being displayed.default voidhideBossBar(@NonNull BossBar bar)Hides a boss bar.default voidopenBook(@NonNull Book book)Opens a book.default voidplaySound(@NonNull Sound sound)Plays a sound.default voidplaySound(@NonNull Sound sound, double x, double y, double z)Plays a sound at a location.default voidresetTitle()Resets the title and timings back to their default.default voidsendActionBar(@NonNull Component message)Sends a message on the action bar.default voidsendMessage(@NonNull Identified source, @NonNull Component message, @NonNull MessageType type)Sends a chat message.default voidsendMessage(@NonNull Identity source, @NonNull Component message, @NonNull MessageType type)Sends a chat message.default voidshowBossBar(@NonNull BossBar bar)Shows a boss bar.default voidshowTitle(@NonNull Title title)Shows a title.default voidstopSound(@NonNull SoundStop stop)Stops a sound, or many sounds.Methods inherited from interface net.kyori.adventure.audience.AudienceopenBook, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage
- 
Method Details- 
audiencesGets the audiences.- Returns:
- the audiences
- Since:
- 4.0.0
 
- 
sendMessagedefault void sendMessage(@NonNull Identified source, @NonNull Component message, @NonNull MessageType type)Description copied from interface:AudienceSends a chat message.- Specified by:
- sendMessagein interface- Audience
- Parameters:
- source- the source of the message
- message- a message
- type- the type
- See Also:
- Component
 
- 
sendMessagedefault void sendMessage(@NonNull Identity source, @NonNull Component message, @NonNull MessageType type)Description copied from interface:AudienceSends a chat message.- Specified by:
- sendMessagein interface- Audience
- Parameters:
- source- the identity of the source of the message
- message- a message
- type- the type
- See Also:
- Component
 
- 
sendActionBarDescription copied from interface:AudienceSends a message on the action bar.- Specified by:
- sendActionBarin interface- Audience
- Parameters:
- message- a message
- See Also:
- Component
 
- 
showTitleDescription copied from interface:AudienceShows a title.
- 
clearTitledefault void clearTitle()Description copied from interface:AudienceClears the title, if one is being displayed.- Specified by:
- clearTitlein interface- Audience
- See Also:
- Title
 
- 
resetTitledefault void resetTitle()Description copied from interface:AudienceResets the title and timings back to their default.- Specified by:
- resetTitlein interface- Audience
- See Also:
- Title
 
- 
showBossBarDescription copied from interface:AudienceShows a boss bar.- Specified by:
- showBossBarin interface- Audience
- Parameters:
- bar- a boss bar
- See Also:
- BossBar
 
- 
hideBossBarDescription copied from interface:AudienceHides a boss bar.- Specified by:
- hideBossBarin interface- Audience
- Parameters:
- bar- a boss bar
- See Also:
- BossBar
 
- 
playSoundDescription copied from interface:AudiencePlays a sound.
- 
playSoundDescription copied from interface:AudiencePlays a sound at a location.
- 
stopSoundDescription copied from interface:AudienceStops a sound, or many sounds.
- 
openBookDescription copied from interface:AudienceOpens a book.When possible, no item should persist after closing the book. 
 
-