Class TextHandler.StylePredicateVisitor

java.lang.Object
net.minecraft.client.font.TextHandler.StylePredicateVisitor
All Implemented Interfaces:
CharacterVisitor
Enclosing class:
TextHandler

@Environment(CLIENT) private class TextHandler.StylePredicateVisitor extends Object implements CharacterVisitor
Mappings:
Namespace Name
official egh$f
intermediary net/minecraft/class_5225$class_7624
named net/minecraft/client/font/TextHandler$StylePredicateVisitor
  • Field Details

    • stylePredicate

      private final Predicate<Style> stylePredicate
      Mappings:
      Namespace Name Mixin selector
      official b Legh$f;b:Ljava/util/function/Predicate;
      intermediary field_39840 Lnet/minecraft/class_5225$class_7624;field_39840:Ljava/util/function/Predicate;
      named stylePredicate Lnet/minecraft/client/font/TextHandler$StylePredicateVisitor;stylePredicate:Ljava/util/function/Predicate;
    • totalWidth

      private float totalWidth
      Mappings:
      Namespace Name Mixin selector
      official c Legh$f;c:F
      intermediary field_39841 Lnet/minecraft/class_5225$class_7624;field_39841:F
      named totalWidth Lnet/minecraft/client/font/TextHandler$StylePredicateVisitor;totalWidth:F
    • results

      Mappings:
      Namespace Name Mixin selector
      official d Legh$f;d:Lcom/google/common/collect/ImmutableList$Builder;
      intermediary field_39842 Lnet/minecraft/class_5225$class_7624;field_39842:Lcom/google/common/collect/ImmutableList$Builder;
      named results Lnet/minecraft/client/font/TextHandler$StylePredicateVisitor;results:Lcom/google/common/collect/ImmutableList$Builder;
    • styleStartWidth

      private float styleStartWidth
      Mappings:
      Namespace Name Mixin selector
      official e Legh$f;e:F
      intermediary field_39843 Lnet/minecraft/class_5225$class_7624;field_39843:F
      named styleStartWidth Lnet/minecraft/client/font/TextHandler$StylePredicateVisitor;styleStartWidth:F
    • lastTestResult

      private boolean lastTestResult
      Mappings:
      Namespace Name Mixin selector
      official f Legh$f;f:Z
      intermediary field_39844 Lnet/minecraft/class_5225$class_7624;field_39844:Z
      named lastTestResult Lnet/minecraft/client/font/TextHandler$StylePredicateVisitor;lastTestResult:Z
  • Constructor Details

    • StylePredicateVisitor

      StylePredicateVisitor(Predicate<Style> stylePredicate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Legh$f;<init>(Legh;Ljava/util/function/Predicate;)V
      intermediary <init> Lnet/minecraft/class_5225$class_7624;<init>(Lnet/minecraft/class_5225;Ljava/util/function/Predicate;)V
      named <init> Lnet/minecraft/client/font/TextHandler$StylePredicateVisitor;<init>(Lnet/minecraft/client/font/TextHandler;Ljava/util/function/Predicate;)V
  • Method Details

    • accept

      public boolean accept(int index, Style style, int codePoint)
      Visits a single character.

      Multiple surrogate characters are converted into one single codePoint when passed into this method.

      Specified by:
      accept in interface CharacterVisitor
      Parameters:
      index - the current index of the character
      style - the style of the character, containing formatting and font information
      codePoint - the code point of the character
      Returns:
      true to continue visiting other characters, or false to terminate the visit
      Mappings:
      Namespace Name Mixin selector
      official accept Lalv;accept(ILsj;I)Z
      intermediary accept Lnet/minecraft/class_5224;accept(ILnet/minecraft/class_2583;I)Z
      named accept Lnet/minecraft/text/CharacterVisitor;accept(ILnet/minecraft/text/Style;I)Z
    • onStyleMatchStart

      private void onStyleMatchStart()
      Mappings:
      Namespace Name Mixin selector
      official b Legh$f;b()V
      intermediary method_44920 Lnet/minecraft/class_5225$class_7624;method_44920()V
      named onStyleMatchStart Lnet/minecraft/client/font/TextHandler$StylePredicateVisitor;onStyleMatchStart()V
    • onStyleMatchEnd

      private void onStyleMatchEnd()
      Mappings:
      Namespace Name Mixin selector
      official c Legh$f;c()V
      intermediary method_44921 Lnet/minecraft/class_5225$class_7624;method_44921()V
      named onStyleMatchEnd Lnet/minecraft/client/font/TextHandler$StylePredicateVisitor;onStyleMatchEnd()V
    • getResults

      public List<TextHandler.MatchResult> getResults()
      Mappings:
      Namespace Name Mixin selector
      official a Legh$f;a()Ljava/util/List;
      intermediary method_44919 Lnet/minecraft/class_5225$class_7624;method_44919()Ljava/util/List;
      named getResults Lnet/minecraft/client/font/TextHandler$StylePredicateVisitor;getResults()Ljava/util/List;