Uses of Interface
dev.ua.theroer.magicutils.platform.Platform
Packages that use Platform
Package
Description
-
Uses of Platform in dev.ua.theroer.magicutils.bootstrap
Methods in dev.ua.theroer.magicutils.bootstrap that return PlatformMethods in dev.ua.theroer.magicutils.bootstrap with parameters of type PlatformModifier and TypeMethodDescriptionvoidLanguageBootstrap.bindClientLocaleSync(MagicRuntime runtime, Platform platform, LanguageManager languageManager) Binds client-locale synchronization on the runtime when enabled.static MagicRuntime.BuilderMagicRuntime.builder(Platform platform, ConfigManager configManager, LoggerCore logger) Creates a builder for a runtime rooted in the given core services. -
Uses of Platform in dev.ua.theroer.magicutils.config
Constructors in dev.ua.theroer.magicutils.config with parameters of type PlatformModifierConstructorDescriptionConfigManager(Platform platform) Creates a new ConfigManager for the provided platform. -
Uses of Platform in dev.ua.theroer.magicutils.diagnostics
Methods in dev.ua.theroer.magicutils.diagnostics that return Platform -
Uses of Platform in dev.ua.theroer.magicutils.http
Methods in dev.ua.theroer.magicutils.http with parameters of type PlatformModifier and TypeMethodDescriptionstatic MagicHttpClient.BuilderCreates a builder without auto-loading configuration.static MagicHttpClient.BuilderMagicHttpClient.builder(Platform platform, ConfigManager configManager) Creates a builder that loads configuration from the provided manager.static MagicWebSocketClient.BuilderCreates a builder without auto-loading configuration.static MagicWebSocketClient.BuilderMagicWebSocketClient.builder(Platform platform, ConfigManager configManager) Creates a builder that loads configuration from the provided manager. -
Uses of Platform in dev.ua.theroer.magicutils.lang
Methods in dev.ua.theroer.magicutils.lang with parameters of type PlatformModifier and TypeMethodDescriptionLanguageManager.bindClientLocaleSync(Platform targetPlatform) Binds automatic player locale synchronization to the provided platform.Constructors in dev.ua.theroer.magicutils.lang with parameters of type PlatformModifierConstructorDescriptionLanguageManager(Platform platform, ConfigManager configManager) Create a language manager bound to a specific platform. -
Uses of Platform in dev.ua.theroer.magicutils.logger
Methods in dev.ua.theroer.magicutils.logger with parameters of type PlatformModifier 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.Constructors in dev.ua.theroer.magicutils.logger with parameters of type PlatformModifierConstructorDescriptionLoggerCore(Platform platform, ConfigManager configManager, Object placeholderOwner, String pluginName) Create a logger core instance. -
Uses of Platform in dev.ua.theroer.magicutils.platform
Methods in dev.ua.theroer.magicutils.platform with parameters of type PlatformModifier and TypeMethodDescriptionstatic <T> CompletableFuture<T> Tasks.callOnMain(@Nullable Platform platform, Supplier<T> supplier) Runs a supplier on the main thread and returns a future.static CompletableFuture<Void> Runs a task on the main thread and returns a future.static TaskSchedulerResolves the scheduler for a platform (shared fallback when null).static <T> CompletableFuture<T> Tasks.thenOnMain(@Nullable Platform platform, CompletionStage<T> stage) Ensures the completion stage resolves on the main thread.