
package net.kyori.adventure.text;

import org.jetbrains.annotations.NotNull;

/**
 * Something that can be applied to a {@link Component}.
 *
 * @since 4.0.0
 */
@FunctionalInterface
public interface ComponentApplicable {
  /**
   * Applies to {@code component}.
   *
   * @param component the component
   * @return a component with something applied.
   * @since 4.0.0
   */
  @NotNull Component componentApply(final @NotNull Component component);
}
