Package net.minecraft.client.font
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$Builderintermediary net/minecraft/class_378$class_8535official flb$bnamed idintermediary comp_1494official anamed filterintermediary comp_2350official bnamed resultintermediary comp_1495official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FontFilterType.FilterMapThe field for thefilterrecord component.private final FontManager.FontKeyThe field for theidrecord component.private final com.mojang.datafixers.util.Either<CompletableFuture<Optional<Font>>, Identifier> The field for theresultrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBuilder(FontManager.FontKey fontKey, FontFilterType.FilterMap filterMap, com.mojang.datafixers.util.Either<CompletableFuture<Optional<Font>>, Identifier> either) -
Method Summary
Modifier and TypeMethodDescriptionprivate Font.FontFilterPairbuild(Function<Identifier, List<Font.FontFilterPair>> fontRetriever) final booleanIndicates whether some other object is "equal to" this one.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.com.mojang.datafixers.util.Either<CompletableFuture<Optional<Font>>, Identifier> result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
filter
The field for thefilterrecord component. -
result
private final com.mojang.datafixers.util.Either<CompletableFuture<Optional<Font>>,Identifier> resultThe field for theresultrecord component.
-
-
Constructor Details
-
Builder
Builder(FontManager.FontKey fontKey, FontFilterType.FilterMap filterMap, com.mojang.datafixers.util.Either<CompletableFuture<Optional<Font>>, Identifier> either)
-
-
Method Details
-
build
public Optional<List<Font.FontFilterPair>> build(Function<Identifier, List<Font.FontFilterPair>> fontRetriever) - Mappings:
Namespace Name Mixin selector named buildLnet/minecraft/client/font/FontManager$Builder;build(Ljava/util/function/Function;)Ljava/util/Optional;intermediary method_51629Lnet/minecraft/class_378$class_8535;method_51629(Ljava/util/function/Function;)Ljava/util/Optional;official aLflb$b;a(Ljava/util/function/Function;)Ljava/util/Optional;
-
applyFilter
- Mappings:
Namespace Name Mixin selector named applyFilterLnet/minecraft/client/font/FontManager$Builder;applyFilter(Lnet/minecraft/client/font/Font$FontFilterPair;)Lnet/minecraft/client/font/Font$FontFilterPair;intermediary method_57028Lnet/minecraft/class_378$class_8535;method_57028(Lnet/minecraft/class_390$class_9241;)Lnet/minecraft/class_390$class_9241;official aLflb$b;a(Lezm$a;)Lezm$a;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-