Package net.minecraft.util
Interface FormattedCharSink
- All Known Implementing Classes:
Font.StringRenderOutput
,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 TypeMethodDescriptionboolean
Accepts 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 to0
after each sequence has been fully consumed.- Returns:
true
to accept more characters,false
to stop traversing the sequence.
-