Interface StringVisitable.Visitor<T>

Enclosing interface:
StringVisitable

public static interface StringVisitable.Visitor<T>
A visitor for string content.
Mappings:
Namespace Name
official tp$a
intermediary net/minecraft/class_5348$class_5245
named net/minecraft/text/StringVisitable$Visitor
  • Method Summary

    Modifier and Type
    Method
    Description
    accept(String asString)
    Visits a literal string.
  • Method Details

    • accept

      Optional<T> accept(String asString)
      Visits a literal string.

      When a present optional is returned, the visit is terminated before visiting all text. Can return StringVisitable.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
      official accept Ltp$a;accept(Ljava/lang/String;)Ljava/util/Optional;
      intermediary accept Lnet/minecraft/class_5348$class_5245;accept(Ljava/lang/String;)Ljava/util/Optional;
      named accept Lnet/minecraft/text/StringVisitable$Visitor;accept(Ljava/lang/String;)Ljava/util/Optional;