Interface ComponentResolver<T>

Type Parameters:
T - The type of object to resolve.

public interface ComponentResolver<T>
Resolves an object into a component.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The default component resolver, which simply calls Object.toString() and wraps it in a text component.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.kyori.adventure.text.Component
    Resolves the given object into a component.
  • Field Details

  • Method Details

    • resolve

      net.kyori.adventure.text.Component resolve(T t)
      Resolves the given object into a component.
      Parameters:
      t - The object to resolve.
      Returns:
      The resolved component.