Uses of Class
com.winterhavenmc.library.messagebuilder.pipeline.maps.MacroStringMap
Packages that use MacroStringMap
Package
Description
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.Provides internal map types used in macro extraction and message formatting.
Provides a hierarchy of
Resolver
implementations responsible for converting macro-related input values into string representations
for use in templated messages.-
Uses of MacroStringMap in com.winterhavenmc.library.messagebuilder.pipeline.adapters.displayname
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.displayname that return MacroStringMapModifier 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. -
Uses of MacroStringMap in com.winterhavenmc.library.messagebuilder.pipeline.adapters.duration
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.duration that return MacroStringMapModifier 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 MacroStringMap in com.winterhavenmc.library.messagebuilder.pipeline.adapters.expiration
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.expiration that return MacroStringMapModifier 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 MacroStringMap in com.winterhavenmc.library.messagebuilder.pipeline.adapters.instant
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.instant that return MacroStringMapModifier 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 MacroStringMap in com.winterhavenmc.library.messagebuilder.pipeline.adapters.killer
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.killer that return MacroStringMapModifier 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 MacroStringMap in com.winterhavenmc.library.messagebuilder.pipeline.adapters.location
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.location that return MacroStringMapModifier and TypeMethodDescriptiondefault MacroStringMap
Locatable.extractLocation
(MacroKey baseKey, AdapterContextContainer ctx) Extracts macro key-value pairs representing location data from this object. -
Uses of MacroStringMap in com.winterhavenmc.library.messagebuilder.pipeline.adapters.looter
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.looter that return MacroStringMapModifier and TypeMethodDescriptiondefault MacroStringMap
Lootable.extractLooter
(MacroKey baseKey, AdapterContextContainer ctx) Extracts the looter's name as a macro replacement field. -
Uses of MacroStringMap in com.winterhavenmc.library.messagebuilder.pipeline.adapters.name
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.name that return MacroStringMapModifier 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 MacroStringMap in com.winterhavenmc.library.messagebuilder.pipeline.adapters.owner
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.owner that return MacroStringMapModifier 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 MacroStringMap in com.winterhavenmc.library.messagebuilder.pipeline.adapters.protection
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.protection that return MacroStringMapModifier and TypeMethodDescriptiondefault MacroStringMap
Protectable.extractProtection
(MacroKey baseKey, ChronoUnit lowerBound, FormatStyle formatStyle, AdapterContextContainer ctx) Extracts protection-related fields from this object into aMacroStringMap
. -
Uses of MacroStringMap in com.winterhavenmc.library.messagebuilder.pipeline.adapters.quantity
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.quantity that return MacroStringMapModifier and TypeMethodDescriptiondefault MacroStringMap
Quantifiable.extractQuantity
(MacroKey baseKey, AdapterContextContainer ctx) Extracts aMacroStringMap
containing the formatted quantity string. -
Uses of MacroStringMap in com.winterhavenmc.library.messagebuilder.pipeline.adapters.uuid
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.uuid that return MacroStringMapModifier and TypeMethodDescriptiondefault MacroStringMap
Identifiable.extractUid
(MacroKey baseKey, AdapterContextContainer ctx) Extracts a macro string map containing the UUID field. -
Uses of MacroStringMap in com.winterhavenmc.library.messagebuilder.pipeline.extractor
Methods in com.winterhavenmc.library.messagebuilder.pipeline.extractor that return MacroStringMapModifier and TypeMethodDescription<T> MacroStringMap
Extracts a set of macro string values from an adapted object and returns a map of placeholder keys to replacement strings.<T> MacroStringMap
Extracts macro string values from the adapted object using the adapter's corresponding interface, such asNameable
orLocatable
. -
Uses of MacroStringMap in com.winterhavenmc.library.messagebuilder.pipeline.maps
Methods in com.winterhavenmc.library.messagebuilder.pipeline.maps that return MacroStringMapModifier and TypeMethodDescriptionstatic MacroStringMap
MacroStringMap.empty()
Returns a new, emptyMacroStringMap
.Adds a key-value pair to this map and returns the map itself.Methods in com.winterhavenmc.library.messagebuilder.pipeline.maps with parameters of type MacroStringMapModifier and TypeMethodDescriptionvoid
MacroStringMap.putAll
(MacroStringMap insertionMap) Inserts all entries from anotherMacroStringMap
into this map. -
Uses of MacroStringMap in com.winterhavenmc.library.messagebuilder.pipeline.resolvers
Methods in com.winterhavenmc.library.messagebuilder.pipeline.resolvers that return MacroStringMapModifier and TypeMethodDescriptionAtomicResolver.resolve
(MacroKey macroKey, MacroObjectMap macroObjectMap) Resolves a single value mapped to the providedMacroKey
into a string representation, if the object exists and can be formatted.CompositeResolver.resolve
(MacroKey macroKey, MacroObjectMap macroObjectMap) Resolves aMacroKey
by attempting to adapt the associated object from theMacroObjectMap
using applicableAdapter
instances.FieldResolver.resolve
(MacroKey macroKey, MacroObjectMap macroObjectMap) Resolves aMacroKey
using the available macro objects in the givenMacroObjectMap
, by delegating to each registered resolver in sequence.Resolver.resolve
(MacroKey key, MacroObjectMap macroObjectMap) Resolves a set of string values from the givenMacroObjectMap
for the providedMacroKey
.