Interface TextHandler.LineWrappingConsumer

Enclosing class:
TextHandler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
@Environment(CLIENT)
public static interface TextHandler.LineWrappingConsumer
A consumer of the line-breaking information.
  • Method Summary

    Modifier and Type Method Description
    void accept​(Style style, int start, int end)
    Accepts the information on a line-wrap segment.
  • Method Details

    • accept

      void accept​(Style style, int start, int end)
      Accepts the information on a line-wrap segment.
      Parameters:
      style - the style of this line segment
      start - the start index of this segment in the original string, inclusive
      end - the end index of this segment in the original string, exclusive