Class InstantAdapter
java.lang.Object
com.winterhavenmc.library.messagebuilder.adapters.pipeline.accessors.instant.InstantAdapter
- All Implemented Interfaces:
Accessor
An adapter that supports any object implementing the
Instantable interface.
This adapter enables macro resolution for objects that expose an Instant
via the getInstant() method. It contributes the macro field:
{OBJECT.INSTANT}
to the MacroStringMap used for message composition and formatting.
This adapter is automatically registered with the AccessorRegistry in the core pipeline
and is available for plugin-defined objects that implement the Instantable interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.Accessor
Accessor.BuiltIn -
Field Summary
Fields inherited from interface com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.Accessor
UNKNOWN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAttempts to adapt an object into anInstantable, if it already implements the interface.
-
Constructor Details
-
InstantAdapter
public InstantAdapter()
-
-
Method Details
-
adapt
Attempts to adapt an object into anInstantable, if it already implements the interface.
-