Uses of Interface
net.kyori.adventure.audience.Audience
Packages that use Audience
Package
Description
A receiver of Minecraft media.
Boss bars.
Data for controlling resource packs.
Events that occur when players interact with components.
-
Uses of Audience in net.kyori.adventure.audience
Subinterfaces of Audience in net.kyori.adventure.audienceModifier and TypeInterfaceDescriptioninterfaceA receiver that wraps one or more receivers.static interfaceAn audience that forwards everything to a single other audience.Methods in net.kyori.adventure.audience that return AudienceModifier and TypeMethodDescriptionstatic AudienceCreates an audience that forwards to many other audiences.ForwardingAudience.Single.audience()Gets the audience.static AudienceAudience.empty()Gets an audience that does nothing.default AudienceAudience.filterAudience(Predicate<? super Audience> filter) Filters this audience.default AudienceForwardingAudience.filterAudience(Predicate<? super Audience> filter) default AudienceForwardingAudience.Single.filterAudience(Predicate<? super Audience> filter) Methods in net.kyori.adventure.audience that return types with arguments of type AudienceModifier and TypeMethodDescriptionForwardingAudience.audiences()Gets the audiences.ForwardingAudience.Single.audiences()Audiences.sendingMessage(ComponentLike message) Creates an action to send a message.static Collector<? super Audience, ?, ForwardingAudience> Audience.toAudience()Provides a collector to create a forwarding audience from a stream of audiences.Methods in net.kyori.adventure.audience with parameters of type AudienceModifier and TypeMethodDescriptionstatic AudienceCreates an audience that forwards to many other audiences.Method parameters in net.kyori.adventure.audience with type arguments of type AudienceModifier and TypeMethodDescriptionstatic ForwardingAudienceCreates an audience that forwards to many other audiences.default AudienceAudience.filterAudience(Predicate<? super Audience> filter) Filters this audience.default AudienceForwardingAudience.filterAudience(Predicate<? super Audience> filter) default AudienceForwardingAudience.Single.filterAudience(Predicate<? super Audience> filter) default voidAudience.forEachAudience(Consumer<? super Audience> action) Executes an action against all audiences.default voidForwardingAudience.forEachAudience(Consumer<? super Audience> action) default voidForwardingAudience.Single.forEachAudience(Consumer<? super Audience> action) -
Uses of Audience in net.kyori.adventure.bossbar
Methods in net.kyori.adventure.bossbar with parameters of type Audience -
Uses of Audience in net.kyori.adventure.resource
Methods in net.kyori.adventure.resource with parameters of type AudienceModifier and TypeMethodDescriptionvoidResourcePackCallback.packEventReceived(UUID uuid, ResourcePackStatus status, Audience audience) Called when a pack event has been received.Method parameters in net.kyori.adventure.resource with type arguments of type AudienceModifier and TypeMethodDescriptionstatic ResourcePackCallbackResourcePackCallback.onTerminal(BiConsumer<UUID, Audience> success, BiConsumer<UUID, Audience> failure) Create a pack callback that will only execute the provided functions when the pack application has completed, discarding all intermediate events. -
Uses of Audience in net.kyori.adventure.text.event
Classes in net.kyori.adventure.text.event with type parameters of type AudienceModifier and TypeInterfaceDescriptioninterfaceClickCallback<T extends Audience>A handler for callback click events.Methods in net.kyori.adventure.text.event with type parameters of type AudienceModifier and TypeMethodDescriptionstatic <W extends Audience, N extends W>
ClickCallback<W> ClickCallback.widen(ClickCallback<N> original, Class<N> type) Adjust this callback to accept any audience, and perform the appropriate filtering.static <W extends Audience, N extends W>
ClickCallback<W> ClickCallback.widen(ClickCallback<N> original, Class<N> type, @Nullable Consumer<? super Audience> otherwise) Adjust this callback to accept any audience, and perform the appropriate filtering.Method parameters in net.kyori.adventure.text.event with type arguments of type AudienceModifier and TypeMethodDescriptionstatic ClickEvent<?> ClickEvent.callback(ClickCallback<Audience> function) Create a click event that, when clicked, will schedule a callback function to be executed on the server.static ClickEvent<?> ClickEvent.callback(ClickCallback<Audience> function, Consumer<ClickCallback.Options.Builder> optionsBuilder) Create a click event that, when clicked, will schedule a callback function to be executed on the server.static ClickEvent<?> ClickEvent.callback(ClickCallback<Audience> function, ClickCallback.Options options) Create a click event that, when clicked, will schedule a callback function to be executed on the server.ClickEvent<?> ClickCallback.Provider.create(ClickCallback<Audience> callback, ClickCallback.Options options) Create a real click event based on the provided parameters.default ClickCallback<T> Filter audiences that receive this click callback.default ClickCallback<T> ClickCallback.requiringPermission(String permission, @Nullable Consumer<? super Audience> otherwise) Require that audiences receiving this callback have a certain permission.static <W extends Audience, N extends W>
ClickCallback<W> ClickCallback.widen(ClickCallback<N> original, Class<N> type, @Nullable Consumer<? super Audience> otherwise) Adjust this callback to accept any audience, and perform the appropriate filtering.