@Contract(pure = true)
  default @NotNull TranslatableComponent key(final @NotNull Translatable translatable) {
    return this.key(Objects.requireNonNull(translatable, "translatable").translationKey());
  }
Sets the translation key.

@param translatable the translatable object to get the key from
@return a translatable component
@since 4.8.0
api/src/main/java/net/kyori/adventure/text/TranslatableComponent.java