@Override
  public boolean equals(final @Nullable Object other) {
    if (this == other) return true;
    if (other == null || this.getClass() != other.getClass()) return false;
    final HoverEvent<?> that = (HoverEvent<?>) other;
    return this.action == that.action && this.value.equals(that.value);
  }
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