Package net.minecraft.text
Interface StringVisitable.Visitor<T>
- Enclosing interface:
StringVisitable
public static interface StringVisitable.Visitor<T>
A visitor for string content.
- Mappings:
Namespace Name named net/minecraft/text/StringVisitable$Visitor
intermediary net/minecraft/class_5348$class_5245
official ya$a
-
Method Summary
-
Method Details
-
accept
Visits a literal string.When a
present optional
is returned, the visit is terminated before visiting all text. Can returnStringVisitable.TERMINATE_VISIT
for convenience.- Parameters:
asString
- the literal string- Returns:
Optional.empty()
to continue, a non-empty result to terminate- Mappings:
Namespace Name Mixin selector named accept
Lnet/minecraft/text/StringVisitable$Visitor;accept(Ljava/lang/String;)Ljava/util/Optional;
intermediary accept
Lnet/minecraft/class_5348$class_5245;accept(Ljava/lang/String;)Ljava/util/Optional;
official accept
Lya$a;accept(Ljava/lang/String;)Ljava/util/Optional;
-