Package net.minecraft.client.font
Class TextHandler.StyledString
java.lang.Object
net.minecraft.client.font.TextHandler.StyledString
- All Implemented Interfaces:
StringVisitable
- Enclosing class:
TextHandler
@Environment(CLIENT)
private static class TextHandler.StyledString
extends Object
implements StringVisitable
- Mappings:
Namespace Name named net/minecraft/client/font/TextHandler$StyledString
intermediary net/minecraft/class_5225$class_5345
official fgh$c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.StringVisitable
StringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>
-
Field Summary
Fields inherited from interface net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> Optional
<T> visit
(StringVisitable.StyledVisitor<T> styledVisitor, Style style) Supplies this visitable's literal content and contextual style to the visitor.<T> Optional
<T> visit
(StringVisitable.Visitor<T> visitor) Supplies this visitable's literal content to the visitor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.text.StringVisitable
getString
-
Field Details
-
literal
- Mappings:
Namespace Name Mixin selector named literal
Lnet/minecraft/client/font/TextHandler$StyledString;literal:Ljava/lang/String;
intermediary field_25261
Lnet/minecraft/class_5225$class_5345;field_25261:Ljava/lang/String;
official c
Lfgh$c;c:Ljava/lang/String;
-
style
- Mappings:
Namespace Name Mixin selector named style
Lnet/minecraft/client/font/TextHandler$StyledString;style:Lnet/minecraft/text/Style;
intermediary field_25262
Lnet/minecraft/class_5225$class_5345;field_25262:Lnet/minecraft/class_2583;
official d
Lfgh$c;d:Lxr;
-
-
Constructor Details
-
StyledString
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/font/TextHandler$StyledString;<init>(Ljava/lang/String;Lnet/minecraft/text/Style;)V
intermediary <init>
Lnet/minecraft/class_5225$class_5345;<init>(Ljava/lang/String;Lnet/minecraft/class_2583;)V
official <init>
Lfgh$c;<init>(Ljava/lang/String;Lxr;)V
-
-
Method Details
-
visit
Supplies this visitable's literal content to the visitor.- Specified by:
visit
in interfaceStringVisitable
- Parameters:
visitor
- the visitor- Returns:
Optional.empty()
if the visit finished, or a terminating result from thevisitor
- Mappings:
Namespace Name Mixin selector named visit
Lnet/minecraft/text/StringVisitable;visit(Lnet/minecraft/text/StringVisitable$Visitor;)Ljava/util/Optional;
intermediary method_27657
Lnet/minecraft/class_5348;method_27657(Lnet/minecraft/class_5348$class_5245;)Ljava/util/Optional;
official a
Lwz;a(Lwz$a;)Ljava/util/Optional;
-
visit
Supplies this visitable's literal content and contextual style to the visitor.- Specified by:
visit
in interfaceStringVisitable
- Parameters:
styledVisitor
- the visitorstyle
- the contextual style- Returns:
Optional.empty()
if the visit finished, or a terminating result from thevisitor
- Mappings:
Namespace Name Mixin selector named visit
Lnet/minecraft/text/StringVisitable;visit(Lnet/minecraft/text/StringVisitable$StyledVisitor;Lnet/minecraft/text/Style;)Ljava/util/Optional;
intermediary method_27658
Lnet/minecraft/class_5348;method_27658(Lnet/minecraft/class_5348$class_5246;Lnet/minecraft/class_2583;)Ljava/util/Optional;
official a
Lwz;a(Lwz$b;Lxr;)Ljava/util/Optional;
-