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 official dxn$c
intermediary net/minecraft/class_5225$class_5345
named net/minecraft/client/font/TextHandler$StyledString
-
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 official a
Ldxn$c;a:Ljava/lang/String;
intermediary field_25261
Lnet/minecraft/class_5225$class_5345;field_25261:Ljava/lang/String;
named literal
Lnet/minecraft/client/font/TextHandler$StyledString;literal:Ljava/lang/String;
-
style
- Mappings:
Namespace Name Mixin selector official d
Ldxn$c;d:Lqd;
intermediary field_25262
Lnet/minecraft/class_5225$class_5345;field_25262:Lnet/minecraft/class_2583;
named style
Lnet/minecraft/client/font/TextHandler$StyledString;style:Lnet/minecraft/text/Style;
-
-
Constructor Details
-
StyledString
- Mappings:
Namespace Name Mixin selector official <init>
Ldxn$c;<init>(Ljava/lang/String;Lqd;)V
intermediary <init>
Lnet/minecraft/class_5225$class_5345;<init>(Ljava/lang/String;Lnet/minecraft/class_2583;)V
named <init>
Lnet/minecraft/client/font/TextHandler$StyledString;<init>(Ljava/lang/String;Lnet/minecraft/text/Style;)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 official a
Lpw;a(Lpw$a;)Ljava/util/Optional;
intermediary method_27657
Lnet/minecraft/class_5348;method_27657(Lnet/minecraft/class_5348$class_5245;)Ljava/util/Optional;
named visit
Lnet/minecraft/text/StringVisitable;visit(Lnet/minecraft/text/StringVisitable$Visitor;)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 official a
Lpw;a(Lpw$b;Lqd;)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;
named visit
Lnet/minecraft/text/StringVisitable;visit(Lnet/minecraft/text/StringVisitable$StyledVisitor;Lnet/minecraft/text/Style;)Ljava/util/Optional;
-