Record Class FontManager.Builder

java.lang.Object
java.lang.Record
net.minecraft.client.font.FontManager.Builder
Record Components:
id -
filter -
result -
Enclosing class:
FontManager

@Environment(CLIENT) private static record FontManager.Builder(FontManager.FontKey id, FontFilterType.FilterMap filter, com.mojang.datafixers.util.Either<CompletableFuture<Optional<Font>>,Identifier> result) extends Record
Mappings:
Namespace Name
named net/minecraft/client/font/FontManager$Builder
intermediary net/minecraft/class_378$class_8535
official fkv$b
named id
intermediary comp_1494
official a
named filter
intermediary comp_2350
official b
named result
intermediary comp_1495
official c
  • Field Details

  • Constructor Details

  • Method Details

    • build

      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/client/font/FontManager$Builder;build(Ljava/util/function/Function;)Ljava/util/Optional;
      intermediary method_51629 Lnet/minecraft/class_378$class_8535;method_51629(Ljava/util/function/Function;)Ljava/util/Optional;
      official a Lfkv$b;a(Ljava/util/function/Function;)Ljava/util/Optional;
    • applyFilter

      private Font.FontFilterPair applyFilter(Font.FontFilterPair font)
      Mappings:
      Namespace Name Mixin selector
      named applyFilter Lnet/minecraft/client/font/FontManager$Builder;applyFilter(Lnet/minecraft/client/font/Font$FontFilterPair;)Lnet/minecraft/client/font/Font$FontFilterPair;
      intermediary method_57028 Lnet/minecraft/class_378$class_8535;method_57028(Lnet/minecraft/class_390$class_9241;)Lnet/minecraft/class_390$class_9241;
      official a Lfkv$b;a(Lezg$a;)Lezg$a;
    • 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.
    • id

      public FontManager.FontKey id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • filter

      public FontFilterType.FilterMap filter()
      Returns the value of the filter record component.
      Returns:
      the value of the filter record component
    • result

      public com.mojang.datafixers.util.Either<CompletableFuture<Optional<Font>>,Identifier> result()
      Returns the value of the result record component.
      Returns:
      the value of the result record component