Uses of Class
com.winterhavenmc.library.messagebuilder.keys.MacroKey
Packages that use MacroKey
Package
Description
This package contains the StandardKey interface and implementations
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 utilities for identifying macro placeholders within message strings.
Provides a hierarchy of
Resolver
implementations responsible for converting macro-related input values into string representations
for use in templated messages.-
Uses of MacroKey in com.winterhavenmc.library.messagebuilder.keys
Methods in com.winterhavenmc.library.messagebuilder.keys that return MacroKeyMethods in com.winterhavenmc.library.messagebuilder.keys that return types with arguments of type MacroKeyModifier and TypeMethodDescriptionMacroKey.append
(E subKey) Create a new key by suffixing a dot-separated subkey to this existing keyCreate a new key by suffixing a dot-separated subkey to this existing keyMacroKey.of
(E key) Static factory method for instantiating a record key from an enum constantStatic factory method for instantiating a record key from a string -
Uses of MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.adapters.displayname
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.displayname with parameters of type MacroKeyModifier 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 MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.adapters.duration
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.duration with parameters of type MacroKeyModifier 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 MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.adapters.expiration
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.expiration with parameters of type MacroKeyModifier 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 MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.adapters.instant
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.instant with parameters of type MacroKeyModifier 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 MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.adapters.killer
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.killer with parameters of type MacroKeyModifier 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 MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.adapters.location
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.location with parameters of type MacroKeyModifier and TypeMethodDescriptiondefault MacroStringMap
Locatable.extractLocation
(MacroKey baseKey, AdapterContextContainer ctx) Extracts macro key-value pairs representing location data from this object. -
Uses of MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.adapters.looter
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.looter with parameters of type MacroKeyModifier and TypeMethodDescriptiondefault MacroStringMap
Lootable.extractLooter
(MacroKey baseKey, AdapterContextContainer ctx) Extracts the looter's name as a macro replacement field. -
Uses of MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.adapters.name
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.name with parameters of type MacroKeyModifier 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 MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.adapters.owner
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.owner with parameters of type MacroKeyModifier 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 MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.adapters.protection
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.protection with parameters of type MacroKeyModifier and TypeMethodDescriptiondefault MacroStringMap
Protectable.extractProtection
(MacroKey baseKey, ChronoUnit lowerBound, FormatStyle formatStyle, AdapterContextContainer ctx) Extracts protection-related fields from this object into aMacroStringMap
. -
Uses of MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.adapters.quantity
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.quantity with parameters of type MacroKeyModifier and TypeMethodDescriptiondefault MacroStringMap
Quantifiable.extractQuantity
(MacroKey baseKey, AdapterContextContainer ctx) Extracts aMacroStringMap
containing the formatted quantity string. -
Uses of MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.adapters.uuid
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.uuid with parameters of type MacroKeyModifier and TypeMethodDescriptiondefault MacroStringMap
Identifiable.extractUid
(MacroKey baseKey, AdapterContextContainer ctx) Extracts a macro string map containing the UUID field. -
Uses of MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.extractor
Methods in com.winterhavenmc.library.messagebuilder.pipeline.extractor with parameters of type MacroKeyModifier 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 MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.maps
Methods in com.winterhavenmc.library.messagebuilder.pipeline.maps that return types with arguments of type MacroKeyModifier and TypeMethodDescriptionMacroStringMap.entrySet()
Returns the set of key-value entries in this map.MacroStringMap.keySet()
Returns the set of keys contained in this map.Methods in com.winterhavenmc.library.messagebuilder.pipeline.maps with parameters of type MacroKeyModifier and TypeMethodDescriptionboolean
MacroStringMap.containsKey
(MacroKey key) Returnstrue
if this map contains the specified key.Retrieves the value associated with the specifiedMacroKey
, if present.Returns the value associated with the given key, ornull
if not found.<T> void
Inserts a key-value pair into the map.void
Inserts a key-value pair into the map.<T> void
MacroObjectMap.putIfAbsent
(MacroKey macroKey, T value) Inserts a key-value pair only if the key is not already present in the map.void
MacroStringMap.putIfAbsent
(MacroKey macroKey, String value) Inserts a key-value pair into the map only if the key is not already present.Adds a key-value pair to this map and returns the map itself. -
Uses of MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.matcher
Methods in com.winterhavenmc.library.messagebuilder.pipeline.matcher that return types with arguments of type MacroKey -
Uses of MacroKey in com.winterhavenmc.library.messagebuilder.pipeline.resolvers
Methods in com.winterhavenmc.library.messagebuilder.pipeline.resolvers with parameters of type MacroKeyModifier 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
.