public @NotNull ShowEntity name(final @Nullable Component name) {
      if (Objects.equals(name, this.name)) return this;
      return new ShowEntity(this.type, this.id, name);
    }
Sets the name.

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