public <C> @NotNull HoverEvent<V> withRenderedValue(final @NotNull ComponentRenderer<C> renderer, final @NotNull C context) {
    final V oldValue = this.value;
    final V newValue = this.action.renderer.render(renderer, context, oldValue);
    if (newValue != oldValue) return new HoverEvent<>(this.action, newValue);
    return this;
  }
Returns a hover event with the value rendered using {@code renderer} when possible.

@param renderer the renderer
@param context the render context
@param <C> the context type
@return a hover event
@since 4.0.0
api/src/main/java/net/kyori/adventure/text/event/HoverEvent.java