Uses of Record Class
com.winterhavenmc.library.messagebuilder.pipeline.adapters.AdapterContextContainer
Packages that use AdapterContextContainer
Package
Description
Defines the adapter mechanism for macro value extraction within the message-building pipeline.
Provides an adapter and interface for extracting and formatting display names from objects.
Provides an adapter for objects that expose a
Duration
.Provides adapter and interface support for expiration-based macro replacements.
Provides adapter support for objects that expose a timestamp via the
Instant
API.Provides support for extracting killer information from entities or plugin-defined objects.
Provides support for extracting and formatting location-based macro values from objects.
Contains support for adapting objects that represent looting permissions or claims.
Provides the
Nameable
interface and its corresponding adapter used to extract and format
name-related fields from objects passed into the message pipeline.Provides support for extracting ownership information from objects and applying it to macro placeholders.
Provides support for adapting objects with time-based protection attributes into macro string values.
Provides support for macro replacement of quantity-related values.
Provides support for macro replacement of UUID values from objects.
Provides mechanisms for extracting macro-compatible string values from objects
that have been adapted by the
Adapter
system.-
Uses of AdapterContextContainer in com.winterhavenmc.library.messagebuilder.pipeline.adapters
Constructors in com.winterhavenmc.library.messagebuilder.pipeline.adapters with parameters of type AdapterContextContainerModifierConstructorDescriptionConstructs anAdapterRegistry
and registers all built-in adapters in preferred priority order. -
Uses of AdapterContextContainer in com.winterhavenmc.library.messagebuilder.pipeline.adapters.displayname
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.displayname with parameters of type AdapterContextContainerModifier and TypeMethodDescriptiondefault MacroStringMap
DisplayNameable.extractDisplayName
(MacroKey baseKey, AdapterContextContainer ctx) Extracts aMacroStringMap
containing the formatted display name under theDISPLAY_NAME
subkey of the given base key.Constructors in com.winterhavenmc.library.messagebuilder.pipeline.adapters.displayname with parameters of type AdapterContextContainerModifierConstructorDescriptionConstructs a newDisplayNameAdapter
with the given context container. -
Uses of AdapterContextContainer in com.winterhavenmc.library.messagebuilder.pipeline.adapters.duration
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.duration with parameters of type AdapterContextContainerModifier and TypeMethodDescriptiondefault MacroStringMap
Durationable.extractDuration
(MacroKey baseKey, ChronoUnit lowerBound, AdapterContextContainer ctx) Extracts aMacroStringMap
containing a single entry mapping the providedMacroKey
(with.DURATION
appended) to a localized string representation of this object's duration. -
Uses of AdapterContextContainer in com.winterhavenmc.library.messagebuilder.pipeline.adapters.expiration
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.expiration with parameters of type AdapterContextContainerModifier and TypeMethodDescriptiondefault MacroStringMap
Expirable.extractExpiration
(MacroKey baseKey, ChronoUnit lowerBound, FormatStyle formatStyle, AdapterContextContainer ctx) Extracts macro key-value pairs for this object's expiration, including a formatted duration and a formatted instant string. -
Uses of AdapterContextContainer in com.winterhavenmc.library.messagebuilder.pipeline.adapters.instant
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.instant with parameters of type AdapterContextContainerModifier and TypeMethodDescriptiondefault MacroStringMap
Instantable.extractInstant
(MacroKey baseKey, FormatStyle formatStyle, AdapterContextContainer ctx) Extracts a formatted timestamp field from thisInstantable
, based on the givenFormatStyle
and locale context. -
Uses of AdapterContextContainer in com.winterhavenmc.library.messagebuilder.pipeline.adapters.killer
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.killer with parameters of type AdapterContextContainerModifier and TypeMethodDescriptiondefault MacroStringMap
Killable.extractKiller
(MacroKey baseKey, AdapterContextContainer ctx) Extracts a macro string map with the killer's name, using the given base key and context. -
Uses of AdapterContextContainer in com.winterhavenmc.library.messagebuilder.pipeline.adapters.location
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.location with parameters of type AdapterContextContainerModifier and TypeMethodDescriptiondefault MacroStringMap
Locatable.extractLocation
(MacroKey baseKey, AdapterContextContainer ctx) Extracts macro key-value pairs representing location data from this object.Locatable.formatLocation
(org.bukkit.Location location, AdapterContextContainer ctx) Produces a formatted string representation of the given location, consisting of the world name followed by localized coordinates.Locatable.getLocationWorldName
(org.bukkit.Location location, AdapterContextContainer ctx) Resolves the name of the world for the givenLocation
. -
Uses of AdapterContextContainer in com.winterhavenmc.library.messagebuilder.pipeline.adapters.looter
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.looter with parameters of type AdapterContextContainerModifier and TypeMethodDescriptiondefault MacroStringMap
Lootable.extractLooter
(MacroKey baseKey, AdapterContextContainer ctx) Extracts the looter's name as a macro replacement field. -
Uses of AdapterContextContainer in com.winterhavenmc.library.messagebuilder.pipeline.adapters.name
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.name with parameters of type AdapterContextContainerModifier and TypeMethodDescriptiondefault MacroStringMap
Nameable.extractName
(MacroKey baseKey, AdapterContextContainer ctx) Extracts the name field into aMacroStringMap
, using the provided base key to construct a dot-notated macro key (e.g.,OBJECT.NAME
). -
Uses of AdapterContextContainer in com.winterhavenmc.library.messagebuilder.pipeline.adapters.owner
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.owner with parameters of type AdapterContextContainerModifier and TypeMethodDescriptiondefault MacroStringMap
Ownable.extractOwner
(MacroKey baseKey, AdapterContextContainer ctx) Extracts the macro value for the owner's name and adds it to aMacroStringMap
, using the{OBJECT.OWNER}
key. -
Uses of AdapterContextContainer in com.winterhavenmc.library.messagebuilder.pipeline.adapters.protection
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.protection with parameters of type AdapterContextContainerModifier and TypeMethodDescriptiondefault MacroStringMap
Protectable.extractProtection
(MacroKey baseKey, ChronoUnit lowerBound, FormatStyle formatStyle, AdapterContextContainer ctx) Extracts protection-related fields from this object into aMacroStringMap
. -
Uses of AdapterContextContainer in com.winterhavenmc.library.messagebuilder.pipeline.adapters.quantity
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.quantity with parameters of type AdapterContextContainerModifier and TypeMethodDescriptiondefault MacroStringMap
Quantifiable.extractQuantity
(MacroKey baseKey, AdapterContextContainer ctx) Extracts aMacroStringMap
containing the formatted quantity string. -
Uses of AdapterContextContainer in com.winterhavenmc.library.messagebuilder.pipeline.adapters.uuid
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.uuid with parameters of type AdapterContextContainerModifier and TypeMethodDescriptiondefault MacroStringMap
Identifiable.extractUid
(MacroKey baseKey, AdapterContextContainer ctx) Extracts a macro string map containing the UUID field. -
Uses of AdapterContextContainer in com.winterhavenmc.library.messagebuilder.pipeline.extractor
Constructors in com.winterhavenmc.library.messagebuilder.pipeline.extractor with parameters of type AdapterContextContainerModifierConstructorDescriptionConstructs a newFieldExtractor
with the provided context container.