Package net.kyori.adventure.audience
Interface ForwardingAudience.Single
- All Superinterfaces:
- Audience,- ForwardingAudience
- Enclosing interface:
- ForwardingAudience
public static interface ForwardingAudience.Single extends ForwardingAudience
An audience that forwards everything to a single other audience.
- Since:
- 4.0.0
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.kyori.adventure.audience.ForwardingAudienceForwardingAudience.Single
- 
Method SummaryModifier and Type Method Description @NonNull Audienceaudience()Gets the audience.default @NonNull Iterable<? extends Audience>audiences()Deprecated.this audience only supports forwarding to a single audiencedefault 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- 
audience@NonNull Audience audience()Gets the audience.- Returns:
- the audience
- Since:
- 4.0.0
 
- 
audiencesDeprecated.this audience only supports forwarding to a single audienceGets the audiences.- Specified by:
- audiencesin interface- ForwardingAudience
- Returns:
- audience()
 
- 
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
- Specified by:
- sendMessagein interface- ForwardingAudience
- 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
- Specified by:
- sendMessagein interface- ForwardingAudience
- 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
- Specified by:
- sendActionBarin interface- ForwardingAudience
- Parameters:
- message- a message
- See Also:
- Component
 
- 
showTitleDescription copied from interface:AudienceShows a title.- Specified by:
- showTitlein interface- Audience
- Specified by:
- showTitlein interface- ForwardingAudience
- Parameters:
- title- a title
- See Also:
- Title
 
- 
clearTitledefault void clearTitle()Description copied from interface:AudienceClears the title, if one is being displayed.- Specified by:
- clearTitlein interface- Audience
- Specified by:
- clearTitlein interface- ForwardingAudience
- See Also:
- Title
 
- 
resetTitledefault void resetTitle()Description copied from interface:AudienceResets the title and timings back to their default.- Specified by:
- resetTitlein interface- Audience
- Specified by:
- resetTitlein interface- ForwardingAudience
- See Also:
- Title
 
- 
showBossBarDescription copied from interface:AudienceShows a boss bar.- Specified by:
- showBossBarin interface- Audience
- Specified by:
- showBossBarin interface- ForwardingAudience
- Parameters:
- bar- a boss bar
- See Also:
- BossBar
 
- 
hideBossBarDescription copied from interface:AudienceHides a boss bar.- Specified by:
- hideBossBarin interface- Audience
- Specified by:
- hideBossBarin interface- ForwardingAudience
- Parameters:
- bar- a boss bar
- See Also:
- BossBar
 
- 
playSoundDescription copied from interface:AudiencePlays a sound.- Specified by:
- playSoundin interface- Audience
- Specified by:
- playSoundin interface- ForwardingAudience
- Parameters:
- sound- a sound
- See Also:
- Sound
 
- 
playSoundDescription copied from interface:AudiencePlays a sound at a location.- Specified by:
- playSoundin interface- Audience
- Specified by:
- playSoundin interface- ForwardingAudience
- Parameters:
- sound- a sound
- x- x coordinate
- y- y coordinate
- z- z coordinate
- See Also:
- Sound
 
- 
stopSoundDescription copied from interface:AudienceStops a sound, or many sounds.- Specified by:
- stopSoundin interface- Audience
- Specified by:
- stopSoundin interface- ForwardingAudience
- Parameters:
- stop- a sound stop
- See Also:
- SoundStop
 
- 
openBookDescription copied from interface:AudienceOpens a book.When possible, no item should persist after closing the book. - Specified by:
- openBookin interface- Audience
- Specified by:
- openBookin interface- ForwardingAudience
- Parameters:
- book- a book
- See Also:
- Book
 
 
-