adventure icon indicating copy to clipboard operation
adventure copied to clipboard

Utility methods to map `ComponentSerializer` instances to new types

Open kezz opened this issue 3 years ago • 0 comments

Some method (or methods?) that can "wrap" a component serializer, changing the input/output/serialized types as needed.

Perhaps something like:

<I extends Component, O extends Component, R, J extends Component> ComponentSerializer<J, O, R> ComponentSerializer<I, O, R>#mapInput(Function<I, J> mapper)

kezz avatar Jan 05 '23 15:01 kezz