Uses of Interface
dev.ua.theroer.magicutils.platform.Audience
Packages that use Audience
Package
Description
-
Uses of Audience in dev.ua.theroer.magicutils.commands
Methods in dev.ua.theroer.magicutils.commands that return AudienceModifier and TypeMethodDescriptionMagicSender.audience()Audience for sending messages back to the sender.Methods in dev.ua.theroer.magicutils.commands with parameters of type AudienceModifier and TypeMethodDescriptionstatic StringCommandDescriptions.resolveForAudience(@Nullable String languageScope, @Nullable Audience audience, @Nullable String description) Resolves a command description for a specific audience, respecting per-player language overrides.static StringCommandDescriptions.resolveForAudience(@Nullable String languageScope, @Nullable Audience audience, @Nullable String description, @Nullable String commandName) Resolves a command description for a specific audience, respecting per-player language overrides, and falling back to the implicitcommands.<name>.descriptionkey when the description is blank.static StringCommandDescriptions.resolveForAudience(@Nullable String languageScope, @Nullable Audience audience, @Nullable String description, @Nullable String commandName, @Nullable List<String> subCommandPath) Resolves a command description for a specific audience, respecting per-player language overrides, and falling back to the implicitcommands.<command>[.<subcommand>...].descriptionkey when the description is blank. -
Uses of Audience in dev.ua.theroer.magicutils.commands.brigadier
Methods in dev.ua.theroer.magicutils.commands.brigadier that return Audience -
Uses of Audience in dev.ua.theroer.magicutils.lang
Methods in dev.ua.theroer.magicutils.lang with parameters of type AudienceModifier and TypeMethodDescriptionLanguageManager.getMessageFor(Audience audience, String key) Resolve a message in the audience's preferred language.Get localized value for an audience using a scoped language manager with fallback to the global manager.Get localized value with replacements for an audience using a scoped language manager with fallback to the global manager.booleanLanguageManager.setAutoDetectedPlayerLanguage(Audience audience, String languageCode) Assign an auto-detected language for anAudience.booleanLanguageManager.setPlayerLanguage(Audience audience, String languageCode) Assign a preferred language for anAudience. -
Uses of Audience in dev.ua.theroer.magicutils.logger
Subinterfaces of Audience in dev.ua.theroer.magicutils.loggerModifier and TypeInterfaceDescriptioninterfaceConsole audience capable of receiving structured log metadata directly.Methods in dev.ua.theroer.magicutils.logger that return AudienceModifier and TypeMethodDescriptionLoggerAdapter.wrapAudience(P player) Wraps a platform player into a MagicUtils audience.Methods in dev.ua.theroer.magicutils.logger that return types with arguments of type AudienceModifier and TypeMethodDescriptionstatic Collection<Audience> LogDispatcher.determineRecipients(Audience audience, Collection<? extends Audience> audiences, boolean broadcast, LogTarget target, Platform platform) Resolves concrete recipients based on provided audience(s) and broadcast flag.LogBuilderCore.getRecipients()Returns a snapshot of queued recipients.Methods in dev.ua.theroer.magicutils.logger with parameters of type AudienceModifier and TypeMethodDescriptiondefault net.kyori.adventure.audience.AudienceExternalPlaceholderEngine.adventureAudience(Audience audience) Returns a Kyori audience wrapper for the platform audience.Applies external placeholder processing to plain text.default net.kyori.adventure.text.ComponentExternalPlaceholderEngine.applyComponent(Audience audience, net.kyori.adventure.text.Component component) Applies external placeholder processing to a component.static Collection<Audience> LogDispatcher.determineRecipients(Audience audience, Collection<? extends Audience> audiences, boolean broadcast, LogTarget target, Platform platform) Resolves concrete recipients based on provided audience(s) and broadcast flag.static net.kyori.adventure.text.ComponentLogMessageFormatter.format(LoggerCore logger, Object message, LogLevel level, LogTarget target, @Nullable PrefixMode prefixOverride, @Nullable Audience directAudience, @Nullable Collection<? extends Audience> audienceCollection, Object... placeholdersArgs) Converts an arbitrary message object into a formatted component ready for delivery.net.kyori.adventure.text.ComponentLoggerCore.parseMessage(Object message, LogLevel level, LogTarget target, @Nullable PrefixMode prefixOverride, @Nullable Audience directAudience, @Nullable Collection<? extends Audience> audienceCollection, Object... placeholdersArgs) Parses a message to a component using custom prefix override.net.kyori.adventure.text.ComponentLoggerCore.parseMessage(Object message, LogLevel level, LogTarget target, @Nullable Audience directAudience, @Nullable Collection<? extends Audience> audienceCollection, Object... placeholdersArgs) Parses a message to a component using current logger configuration.net.kyori.adventure.text.ComponentLoggerCore.parseMessage(Object message, @Nullable Audience directAudience, @Nullable Collection<? extends Audience> audienceCollection, Object... placeholdersArgs) Parses a message to a component using logger pipeline without any prefix.Adds a single recipient.voidLoggerCore.send(LogLevel level, Object message, @Nullable Audience audience, @Nullable Collection<? extends Audience> audiences, LogTarget target, boolean broadcast, Object... placeholders) Sends a message through the logger pipeline.protected voidprotected voidvoidPrefixedLoggerCore.send(LogLevel level, Object message, Audience audience, Collection<? extends Audience> audiences, LogTarget target, boolean broadcast, Object... placeholders) Sends a message using the prefixed logger.default net.kyori.adventure.text.minimessage.tag.resolver.TagResolverExternalPlaceholderEngine.tagResolver(Audience audience) Returns a tag resolver for MiniMessage parsing.Sets the direct audience for the message.Method parameters in dev.ua.theroer.magicutils.logger with type arguments of type AudienceModifier and TypeMethodDescriptionstatic voidLogDispatcher.deliver(Platform platform, net.kyori.adventure.text.Component component, Collection<Audience> recipients, LogTarget target) Sends the component to console and/or chat in a thread-safe way.static voidLogDispatcher.deliver(Platform platform, net.kyori.adventure.text.Component chatComponent, net.kyori.adventure.text.Component consoleComponent, Collection<Audience> recipients, LogTarget target, ConsoleMessageMetadata consoleMetadata) Sends the component to console and/or chat in a thread-safe way.static Collection<Audience> LogDispatcher.determineRecipients(Audience audience, Collection<? extends Audience> audiences, boolean broadcast, LogTarget target, Platform platform) Resolves concrete recipients based on provided audience(s) and broadcast flag.static net.kyori.adventure.text.ComponentLogMessageFormatter.format(LoggerCore logger, Object message, LogLevel level, LogTarget target, @Nullable PrefixMode prefixOverride, @Nullable Audience directAudience, @Nullable Collection<? extends Audience> audienceCollection, Object... placeholdersArgs) Converts an arbitrary message object into a formatted component ready for delivery.net.kyori.adventure.text.ComponentLoggerCore.parseMessage(Object message, LogLevel level, LogTarget target, @Nullable PrefixMode prefixOverride, @Nullable Audience directAudience, @Nullable Collection<? extends Audience> audienceCollection, Object... placeholdersArgs) Parses a message to a component using custom prefix override.net.kyori.adventure.text.ComponentLoggerCore.parseMessage(Object message, LogLevel level, LogTarget target, @Nullable Audience directAudience, @Nullable Collection<? extends Audience> audienceCollection, Object... placeholdersArgs) Parses a message to a component using current logger configuration.net.kyori.adventure.text.ComponentLoggerCore.parseMessage(Object message, @Nullable Audience directAudience, @Nullable Collection<? extends Audience> audienceCollection, Object... placeholdersArgs) Parses a message to a component using logger pipeline without any prefix.voidLoggerCore.send(LogLevel level, Object message, @Nullable Audience audience, @Nullable Collection<? extends Audience> audiences, LogTarget target, boolean broadcast, Object... placeholders) Sends a message through the logger pipeline.voidPrefixedLoggerCore.send(LogLevel level, Object message, Audience audience, Collection<? extends Audience> audiences, LogTarget target, boolean broadcast, Object... placeholders) Sends a message using the prefixed logger.protected voidLoggerCore.sendToPlayers(LogLevel level, Object message, Collection<? extends Audience> players) LogBuilderCore.toAudiences(Collection<? extends Audience> audiences) Adds a collection of audiences as recipients. -
Uses of Audience in dev.ua.theroer.magicutils.placeholders
Methods in dev.ua.theroer.magicutils.placeholders that return AudienceModifier and TypeMethodDescription@Nullable AudiencePlaceholderContext.audience()Returns the audience tied to rendering.static @Nullable AudienceMagicPlaceholders.audienceFromUuid(@Nullable UUID uuid) Creates a lightweight audience wrapper for a UUID.Methods in dev.ua.theroer.magicutils.placeholders with parameters of type AudienceModifier and TypeMethodDescriptionSets the audience for resolution.voidMagicPlaceholders.PlaceholderDebugListener.onResolve(MagicPlaceholders.PlaceholderKey key, @Nullable Object ownerKey, @Nullable Audience audience, @Nullable String argument, @Nullable String value, @Nullable Throwable error) Called when a placeholder resolves or fails.static StringResolves placeholders inside a string for an audience.static StringResolves placeholders inside a string with inline replacements.@Nullable StringMagicPlaceholders.PlaceholderResolver.resolve(@Nullable Audience audience, @Nullable String argument) Resolves the placeholder value for an audience and argument.static StringMagicPlaceholders.resolve(String namespace, String key, @Nullable Audience audience, @Nullable String argument) Resolves a placeholder value.MagicPlaceholders.resolveResult(String namespace, String key, @Nullable Audience audience, @Nullable String argument) Resolves a placeholder value with error details. -
Uses of Audience in dev.ua.theroer.magicutils.platform
Methods in dev.ua.theroer.magicutils.platform that return AudienceModifier and TypeMethodDescriptionPlatform.console()Audience representing console/server.default @Nullable AudiencePlatform.playerById(UUID id) Finds an online player audience by UUID.default @Nullable AudiencePlatform.playerByName(String name) Finds an online player audience by exact, case-insensitive name.static @Nullable AudienceResolves any object into anAudience.Methods in dev.ua.theroer.magicutils.platform that return types with arguments of type AudienceModifier and TypeMethodDescriptionPlatform.onlinePlayers()Snapshot of online player audiences, if applicable.Methods in dev.ua.theroer.magicutils.platform with parameters of type AudienceModifier and TypeMethodDescriptiondefault voidPlatform.runForAudience(Audience audience, Runnable task) Executes a task in the context of a specific audience (e.g., entity region on Folia).Method parameters in dev.ua.theroer.magicutils.platform with type arguments of type AudienceModifier and TypeMethodDescriptionstatic voidAudienceResolver.registerFactory(Function<Object, Audience> factory) Registers a factory that wraps platform-specific objects (e.g.static voidAudienceResolver.unregisterFactory(Function<Object, Audience> factory) Removes a previously registered factory.