Package com.winterhavenmc.library.messagebuilder.adapters.pipeline.accessors.duration
package com.winterhavenmc.library.messagebuilder.adapters.pipeline.accessors.duration
Provides an adapter for objects that expose a
Duration.
This package defines the Durationable
interface, which should be implemented by any object that can expose a duration value for use in macro substitution.
Macros of the form {OBJECT.DURATION} are supported by extracting and formatting the value returned from
getDuration().
The DurationAdapter is the
corresponding Accessor
implementation that adapts objects implementing Durationable.
Formatting of duration values is handled by the
DurationFormatter
chain, allowing for localized and human-readable output.
This adapter does not perform adaptation for any Bukkit-provided types by default. Only objects explicitly
implementing the Durationable interface will be adapted.
- See Also:
-
Classes