Uses of Class
com.winterhavenmc.library.messagebuilder.models.keys.ValidMacroKey
Packages that use ValidMacroKey
Package
Description
Provides classes that expose a uniform interface for accessing structured data
from diverse object types used within MessageBuilderLib.
Provides internal map types used in macro extraction and message formatting.
Provides mechanisms for extracting macro-compatible string values from objects
that have been adapted by the
Accessor system.Provides utilities for identifying macro placeholders within message strings.
Provides a hierarchy of
ValueResolver
implementations responsible for converting macro-related input values into string representations
for use in templated messages.This package contains the StandardKey interface and implementations
-
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.adapters.pipeline.accessors
Methods in com.winterhavenmc.library.messagebuilder.adapters.pipeline.accessors with parameters of type ValidMacroKeyModifier and TypeMethodDescription<T> MacroStringMapMacroFieldAccessor.extract(ValidMacroKey baseKey, Accessor accessor, T adapted) Extracts macro string values from the adapted object using the accessor's corresponding interface, such asNameableorLocatable. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.adapters.pipeline.matchers
Methods in com.winterhavenmc.library.messagebuilder.adapters.pipeline.matchers that return types with arguments of type ValidMacroKeyModifier and TypeMethodDescription -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.adapters.pipeline.resolvers.value
Methods in com.winterhavenmc.library.messagebuilder.adapters.pipeline.resolvers.value with parameters of type ValidMacroKeyModifier and TypeMethodDescriptionAtomicResolver.resolve(ValidMacroKey macroKey, MacroObjectMap macroObjectMap) Resolves a single value mapped to the providedValidMacroKeyinto a string representation, if the object exists and can be formatted.CompositeResolver.resolve(ValidMacroKey macroKey, MacroObjectMap macroObjectMap) Resolves aValidMacroKeyby attempting to adapt the associated object from theMacroObjectMapusing applicableAccessorinstances.MacroValueResolver.resolve(ValidMacroKey macroKey, MacroObjectMap macroObjectMap) Resolves aValidMacroKeyusing the available macro objects in the givenMacroObjectMap, by delegating to each registered resolver in sequence. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.maps
Methods in com.winterhavenmc.library.messagebuilder.core.maps that return types with arguments of type ValidMacroKeyModifier and TypeMethodDescriptionIterable<? extends Map.Entry<ValidMacroKey, String>> MacroStringMap.entrySet()Returns the set of string-value entries in this map.MacroStringMap.keySet()Returns the set of keys contained in this map.Methods in com.winterhavenmc.library.messagebuilder.core.maps with parameters of type ValidMacroKeyModifier and TypeMethodDescriptionbooleanMacroStringMap.containsKey(ValidMacroKey key) Returnstrueif this map contains the specified string.MacroStringMap.get(ValidMacroKey macroKey) Returns the value associated with the given string, ornullif not found.voidMacroStringMap.put(ValidMacroKey macroKey, String value) Inserts a string-value pair into the map.voidMacroStringMap.putIfAbsent(ValidMacroKey macroKey, String value) Inserts a string-value pair into the map only if the string is not already present.MacroStringMap.with(ValidMacroKey key, String value) Adds a string-value pair to this map and returns the map itself. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors with parameters of type ValidMacroKeyModifier and TypeMethodDescription<T> MacroStringMapFieldAccessor.extract(ValidMacroKey baseKey, Accessor accessor, T adapted) Extracts a set of macro string values from an adapted object and returns a map of placeholder keys to replacement strings. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.displayname
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.displayname with parameters of type ValidMacroKeyModifier and TypeMethodDescriptiondefault MacroStringMapDisplayNameable.extractDisplayName(ValidMacroKey baseKey, AccessorCtx ctx) Extracts aMacroStringMapcontaining the formatted display name under theDISPLAY_NAMEsubkey of the given base string. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.duration
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.duration with parameters of type ValidMacroKeyModifier and TypeMethodDescriptiondefault MacroStringMapDurationable.extractDuration(ValidMacroKey baseKey, ChronoUnit lowerBound, AccessorCtx ctx) Extracts aMacroStringMapcontaining a single entry mapping the providedValidMacroKey(with.DURATIONappended) to a localized string representation of this object's duration. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.expiration
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.expiration with parameters of type ValidMacroKeyModifier and TypeMethodDescriptiondefault MacroStringMapExpirable.extractExpiration(ValidMacroKey baseKey, ChronoUnit lowerBound, FormatStyle formatStyle, AccessorCtx ctx) Extracts macro string-value pairs for this object's expiration, including a formatted duration and a formatted instant string. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.identity
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.identity with parameters of type ValidMacroKeyModifier and TypeMethodDescriptiondefault MacroStringMapIdentifiable.extractUid(ValidMacroKey baseKey, AccessorCtx ctx) Extracts a macro string map containing the UUID field. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.instant
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.instant with parameters of type ValidMacroKeyModifier and TypeMethodDescriptiondefault MacroStringMapInstantable.extractInstant(ValidMacroKey baseKey, FormatStyle formatStyle, AccessorCtx ctx) Extracts a formatted timestamp field from thisInstantable, based on the givenFormatStyleand locale context. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.killer
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.killer with parameters of type ValidMacroKeyModifier and TypeMethodDescriptiondefault MacroStringMapKillable.extractKiller(ValidMacroKey baseKey, AccessorCtx ctx) Extracts a macro string map with the killer's name, using the given base string and context. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.location
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.location with parameters of type ValidMacroKeyModifier and TypeMethodDescriptiondefault MacroStringMapLocatable.extractLocation(ValidMacroKey baseKey, AccessorCtx ctx) Extracts macro string-value pairs representing location data from this object. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.looter
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.looter with parameters of type ValidMacroKeyModifier and TypeMethodDescriptiondefault MacroStringMapLootable.extractLooter(ValidMacroKey baseKey, AccessorCtx ctx) Extracts the looter's name as a macro replacement field. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.name
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.name with parameters of type ValidMacroKeyModifier and TypeMethodDescriptiondefault MacroStringMapNameable.extractName(ValidMacroKey baseKey, AccessorCtx ctx) Extracts the name field into aMacroStringMap, using the provided base string to construct a dot-notated macro string (e.g.,OBJECT.NAME). -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.owner
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.owner with parameters of type ValidMacroKeyModifier and TypeMethodDescriptiondefault MacroStringMapOwnable.extractOwner(ValidMacroKey baseKey, AccessorCtx ctx) Extracts the macro value for the owner's name and adds it to aMacroStringMap, using the{OBJECT.OWNER}string. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.pluralname
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.pluralname with parameters of type ValidMacroKeyModifier and TypeMethodDescriptiondefault MacroStringMapPluralNameable.extractPluralName(ValidMacroKey baseKey, AccessorCtx ctx) Extracts aMacroStringMapcontaining the formatted plural name under thePLURAL_NAMEsubkey of the given base string. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.protection
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.protection with parameters of type ValidMacroKeyModifier and TypeMethodDescriptiondefault MacroStringMapProtectable.extractProtection(ValidMacroKey baseKey, ChronoUnit lowerBound, FormatStyle formatStyle, AccessorCtx ctx) Extracts protection-related fields from this object into aMacroStringMap. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.quantity
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.quantity with parameters of type ValidMacroKeyModifier and TypeMethodDescriptiondefault MacroStringMapQuantifiable.extractQuantity(ValidMacroKey baseKey, AccessorCtx ctx) Extracts aMacroStringMapcontaining the formatted quantity string. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.url
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.url with parameters of type ValidMacroKeyModifier and TypeMethodDescriptiondefault MacroStringMapUrlAddressable.extractUrl(ValidMacroKey baseKey, AccessorCtx ctx) -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.version
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.version with parameters of type ValidMacroKeyModifier and TypeMethodDescriptiondefault MacroStringMapVersionable.extractVersion(ValidMacroKey baseKey, AccessorCtx ctx) -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.matchers
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.matchers that return types with arguments of type ValidMacroKeyModifier and TypeMethodDescriptionExtracts macro keys from the given input string using the specified regular expression pattern. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.resolvers.macro
Methods in com.winterhavenmc.library.messagebuilder.core.ports.pipeline.resolvers.macro with parameters of type ValidMacroKeyModifier and TypeMethodDescriptionValueResolver.resolve(ValidMacroKey key, MacroObjectMap macroObjectMap) Resolves a set of string values from the givenMacroObjectMapfor the providedValidMacroKey. -
Uses of ValidMacroKey in com.winterhavenmc.library.messagebuilder.models.keys
Methods in com.winterhavenmc.library.messagebuilder.models.keys that return ValidMacroKeyMethods in com.winterhavenmc.library.messagebuilder.models.keys that return types with arguments of type ValidMacroKey