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 OrderedText
EMPTY
An empty text that does not call the visitors. -
Method Summary
Modifier and Type Method Description boolean
accept(CharacterVisitor visitor)
static OrderedText
concat(List<OrderedText> texts)
static OrderedText
concat(OrderedText first, OrderedText second)
static OrderedText
innerConcat(List<OrderedText> texts)
static OrderedText
innerConcat(OrderedText text1, OrderedText text2)
static CharacterVisitor
map(CharacterVisitor visitor, Int2IntFunction codePointMapper)
static OrderedText
styled(int codePoint, Style style)
static OrderedText
styledString(String string, Style style)
static OrderedText
styledStringMapped(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
-