Uses of Class
com.winterhavenmc.library.messagebuilder.resources.configuration.LocaleProvider
Packages that use LocaleProvider
Package
Description
Provides adapter support for objects that expose a timestamp via the
Instant
API.Contains formatters responsible for converting data types into localized, human-readable strings.
Provides formatting for
Duration
values into localized, human-readable strings.Provides locale-aware number formatting for use in the message-building pipeline.
Provides configuration accessors for server-defined language, locale, and timezone settings.
Provides a flexible, localized validation framework for use within the MessageBuilder library.
-
Uses of LocaleProvider in com.winterhavenmc.library.messagebuilder.pipeline.adapters.instant
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.instant with parameters of type LocaleProviderModifier and TypeMethodDescriptionInstantable.formatInstant
(Instant instant, FormatStyle formatStyle, LocaleProvider localeProvider) Formats the providedInstant
using the specifiedFormatStyle
and locale. -
Uses of LocaleProvider in com.winterhavenmc.library.messagebuilder.pipeline.formatters
Methods in com.winterhavenmc.library.messagebuilder.pipeline.formatters that return LocaleProviderModifier and TypeMethodDescriptionFormatterContainer.localeProvider()
Returns the value of thelocaleProvider
record component.Constructors in com.winterhavenmc.library.messagebuilder.pipeline.formatters with parameters of type LocaleProviderModifierConstructorDescriptionFormatterContainer
(LocaleProvider localeProvider, DurationFormatter durationFormatter, LocaleNumberFormatter localeNumberFormatter) Creates an instance of aFormatterContainer
record class. -
Uses of LocaleProvider in com.winterhavenmc.library.messagebuilder.pipeline.formatters.duration
Constructors in com.winterhavenmc.library.messagebuilder.pipeline.formatters.duration with parameters of type LocaleProviderModifierConstructorDescriptionTime4jDurationFormatter
(LocaleProvider localeProvider) Constructs aTime4jDurationFormatter
with the providedLocaleProvider
. -
Uses of LocaleProvider in com.winterhavenmc.library.messagebuilder.pipeline.formatters.number
Constructors in com.winterhavenmc.library.messagebuilder.pipeline.formatters.number with parameters of type LocaleProviderModifierConstructorDescriptionLocaleNumberFormatter
(LocaleProvider localeProvider) Constructs a newLocaleNumberFormatter
with the given locale provider. -
Uses of LocaleProvider in com.winterhavenmc.library.messagebuilder.resources.configuration
Methods in com.winterhavenmc.library.messagebuilder.resources.configuration that return LocaleProviderModifier and TypeMethodDescriptionstatic LocaleProvider
LocaleProvider.create
(org.bukkit.plugin.Plugin plugin) Factory method to construct aLocaleProvider
using a plugin's configuration. -
Uses of LocaleProvider in com.winterhavenmc.library.messagebuilder.validation
Methods in com.winterhavenmc.library.messagebuilder.validation with parameters of type LocaleProviderModifier and TypeMethodDescriptionstatic void
ValidationContext.initialize
(LocaleProvider provider) Initializes the validation context with the provided locale source.