Class ExpirationAdapter
java.lang.Object
com.winterhavenmc.library.messagebuilder.pipeline.adapters.expiration.ExpirationAdapter
- All Implemented Interfaces:
Adapter
Adapter for objects that implement the
Expirable
interface.
This adapter allows eligible objects to be recognized as providing expiration-related data.
If the provided object implements Expirable
, it will be wrapped and returned for
macro extraction of expiration-based values such as duration and timestamp.
Supports macro replacements such as:
[OBJECT.EXPIRATION.DURATION
} – formatted time until expiration[OBJECT.EXPIRATION.INSTANT
} – formatted expiration date/time
This adapter is commonly used in time-sensitive contexts such as expiring items, events, cooldowns, or protection windows where expiration tracking is necessary.
-
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
-
Constructor Details
-
ExpirationAdapter
public ExpirationAdapter()
-
-
Method Details