Package net.minecraft.util
Interface FormattedCharSink
- All Known Implementing Classes:
Font.PreparedTextBuilder,StringSplitter.LineBreakFinder,StringSplitter.WidthLimitedCharSink
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAccepts a single code point from aFormattedCharSequence.
-
Method Details
-
accept
Accepts a single code point from aFormattedCharSequence.- Parameters:
pPositionInCurrentSequence- Contains the relative position of the character in the current sub-sequence. If multiple formatted char sequences have been combined, this value will reset to0after each sequence has been fully consumed.- Returns:
trueto accept more characters,falseto stop traversing the sequence.
-