Package net.minecraft.text
Interface OrderedText
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface OrderedText
An object that can supply character code points
to a visitor, with a style context.
-
Field Summary
Fields Modifier and Type Field Description static OrderedTextEMPTYAn empty text that does not call the visitors. -
Method Summary
Modifier and Type Method Description booleanaccept(CharacterVisitor visitor)static OrderedTextconcat(List<OrderedText> texts)static OrderedTextconcat(OrderedText first, OrderedText second)static OrderedTextinnerConcat(List<OrderedText> texts)static OrderedTextinnerConcat(OrderedText text1, OrderedText text2)static CharacterVisitormap(CharacterVisitor visitor, Int2IntFunction codePointMapper)static OrderedTextstyled(int codePoint, Style style)static OrderedTextstyledString(String string, Style style)static OrderedTextstyledStringMapped(String string, Style style, Int2IntFunction codePointMapper)
-
Field Details
-
EMPTY
An empty text that does not call the visitors.
-
-
Method Details
-
accept
-
styled
-
styledString
-
styledStringMapped
@Environment(CLIENT) static OrderedText styledStringMapped(String string, Style style, Int2IntFunction codePointMapper) -
map
@Environment(CLIENT) static CharacterVisitor map(CharacterVisitor visitor, Int2IntFunction codePointMapper) -
concat
-
concat
-
innerConcat
-
innerConcat
-