public @NotNull ShowEntity type(final @NotNull Keyed type) {
      return this.type(requireNonNull(type, "type").key());
    }
Sets the type.

@param type the type
@return a {@code ShowEntity}
@since 4.6.0
api/src/main/java/net/kyori/adventure/text/event/HoverEvent.java