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 xd$a
  • 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
      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 Lxd$a;accept(Ljava/lang/String;)Ljava/util/Optional;