Interface NativeText


public interface NativeText
Version-neutral handle for one native text component.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    NBT data source used by an NBT-backed component.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <R> R
    convert(TextConverter<R> converter)
    Converts this native tree explicitly, caching only by converter identity for this handle's lifetime.
    Returns the classified native content kind without converting the tree.
    Returns the exact adapter-native component.
  • Method Details

    • nativeHandle

      Object nativeHandle()
      Returns the exact adapter-native component.
      Returns:
      native component
    • kind

      default NativeTextKind kind()
      Returns the classified native content kind without converting the tree.
    • convert

      default <R> R convert(TextConverter<R> converter)
      Converts this native tree explicitly, caching only by converter identity for this handle's lifetime.
      Type Parameters:
      R - destination type
      Parameters:
      converter - destination converter
      Returns:
      converted root