Class InstantAdapter
java.lang.Object
com.winterhavenmc.library.messagebuilder.pipeline.adapters.instant.InstantAdapter
- All Implemented Interfaces:
Adapter
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 AdapterRegistry
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.pipeline.adapters.Adapter
Adapter.BuiltIn
-
Field Summary
Fields inherited from interface com.winterhavenmc.library.messagebuilder.pipeline.adapters.Adapter
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.
-