Class StringSplitter.SpanBuilder

java.lang.Object
net.minecraft.client.StringSplitter.SpanBuilder
All Implemented Interfaces:
FormattedCharSink
Enclosing class:
StringSplitter

class StringSplitter.SpanBuilder extends Object implements FormattedCharSink
  • Field Details

    • predicate

      private final Predicate<Style> predicate
    • cursor

      private float cursor
    • spans

      private final com.google.common.collect.ImmutableList.Builder<StringSplitter.Span> spans
    • spanStart

      private float spanStart
    • buildingSpan

      private boolean buildingSpan
  • Constructor Details

  • Method Details

    • accept

      public boolean accept(int p_242323_, Style p_242193_, int p_242276_)
      Specified by:
      accept in interface FormattedCharSink
    • startSpan

      private void startSpan()
    • endSpan

      private void endSpan()
    • build

      public List<StringSplitter.Span> build()