Record Class FontManager.FontEntry

java.lang.Object
java.lang.Record
net.minecraft.client.font.FontManager.FontEntry
Record Components:
fontId -
builders -
dependencies -
All Implemented Interfaces:
DependencyTracker.Dependencies<Identifier>
Enclosing class:
FontManager

@Environment(CLIENT) private static record FontManager.FontEntry(Identifier fontId, List<FontManager.Builder> builders, Set<Identifier> dependencies) extends Record implements DependencyTracker.Dependencies<Identifier>
Mappings:
Namespace Name
official erd$e
intermediary net/minecraft/class_378$class_8537
named net/minecraft/client/font/FontManager$FontEntry
official a
intermediary comp_1498
named fontId
official b
intermediary comp_1499
named builders
official c
intermediary comp_1500
named dependencies
  • Field Details

  • Constructor Details

    • FontEntry

      public FontEntry(Identifier fontId)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lerd$e;<init>(Lacq;)V
      intermediary <init> Lnet/minecraft/class_378$class_8537;<init>(Lnet/minecraft/class_2960;)V
      named <init> Lnet/minecraft/client/font/FontManager$FontEntry;<init>(Lnet/minecraft/util/Identifier;)V
    • FontEntry

      private FontEntry(Identifier identifier, List<FontManager.Builder> list, Set<Identifier> set)
  • Method Details

    • addReferenceBuilder

      public void addReferenceBuilder(FontManager.FontKey key, FontLoader.Reference reference)
      Mappings:
      Namespace Name Mixin selector
      official a Lerd$e;a(Lerd$a;Lero$b;)V
      intermediary method_51631 Lnet/minecraft/class_378$class_8537;method_51631(Lnet/minecraft/class_378$class_8534;Lnet/minecraft/class_389$class_8540;)V
      named addReferenceBuilder Lnet/minecraft/client/font/FontManager$FontEntry;addReferenceBuilder(Lnet/minecraft/client/font/FontManager$FontKey;Lnet/minecraft/client/font/FontLoader$Reference;)V
    • addBuilder

      public void addBuilder(FontManager.FontKey key, CompletableFuture<Optional<Font>> provider)
      Mappings:
      Namespace Name Mixin selector
      official a Lerd$e;a(Lerd$a;Ljava/util/concurrent/CompletableFuture;)V
      intermediary method_51632 Lnet/minecraft/class_378$class_8537;method_51632(Lnet/minecraft/class_378$class_8534;Ljava/util/concurrent/CompletableFuture;)V
      named addBuilder Lnet/minecraft/client/font/FontManager$FontEntry;addBuilder(Lnet/minecraft/client/font/FontManager$FontKey;Ljava/util/concurrent/CompletableFuture;)V
    • getImmediateProviders

      private Stream<CompletableFuture<Optional<Font>>> getImmediateProviders()
      Mappings:
      Namespace Name Mixin selector
      official d Lerd$e;d()Ljava/util/stream/Stream;
      intermediary method_51635 Lnet/minecraft/class_378$class_8537;method_51635()Ljava/util/stream/Stream;
      named getImmediateProviders Lnet/minecraft/client/font/FontManager$FontEntry;getImmediateProviders()Ljava/util/stream/Stream;
    • getRequiredFontProviders

      public Optional<List<Font>> getRequiredFontProviders(Function<Identifier,List<Font>> fontRetriever)
      Mappings:
      Namespace Name Mixin selector
      official a Lerd$e;a(Ljava/util/function/Function;)Ljava/util/Optional;
      intermediary method_51634 Lnet/minecraft/class_378$class_8537;method_51634(Ljava/util/function/Function;)Ljava/util/Optional;
      named getRequiredFontProviders Lnet/minecraft/client/font/FontManager$FontEntry;getRequiredFontProviders(Ljava/util/function/Function;)Ljava/util/Optional;
    • forDependencies

      public void forDependencies(Consumer<Identifier> callback)
      Specified by:
      forDependencies in interface DependencyTracker.Dependencies<Identifier>
      Mappings:
      Namespace Name Mixin selector
      official a Laof$a;a(Ljava/util/function/Consumer;)V
      intermediary method_51478 Lnet/minecraft/class_8523$class_8524;method_51478(Ljava/util/function/Consumer;)V
      named forDependencies Lnet/minecraft/resource/DependencyTracker$Dependencies;forDependencies(Ljava/util/function/Consumer;)V
    • forOptionalDependencies

      public void forOptionalDependencies(Consumer<Identifier> callback)
      Specified by:
      forOptionalDependencies in interface DependencyTracker.Dependencies<Identifier>
      Mappings:
      Namespace Name Mixin selector
      official b Laof$a;b(Ljava/util/function/Consumer;)V
      intermediary method_51480 Lnet/minecraft/class_8523$class_8524;method_51480(Ljava/util/function/Consumer;)V
      named forOptionalDependencies Lnet/minecraft/resource/DependencyTracker$Dependencies;forOptionalDependencies(Ljava/util/function/Consumer;)V
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • fontId

      public Identifier fontId()
      Returns the value of the fontId record component.
      Returns:
      the value of the fontId record component
    • builders

      public List<FontManager.Builder> builders()
      Returns the value of the builders record component.
      Returns:
      the value of the builders record component
    • dependencies

      public Set<Identifier> dependencies()
      Returns the value of the dependencies record component.
      Returns:
      the value of the dependencies record component