Package net.minecraft.client.font
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$eintermediary net/minecraft/class_378$class_8537named net/minecraft/client/font/FontManager$FontEntryofficial aintermediary comp_1498named fontIdofficial bintermediary comp_1499named buildersofficial cintermediary comp_1500named dependencies
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<FontManager.Builder>The field for thebuildersrecord component.private final Set<Identifier>The field for thedependenciesrecord component.private final IdentifierThe field for thefontIdrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionFontEntry(Identifier fontId) privateFontEntry(Identifier identifier, List<FontManager.Builder> list, Set<Identifier> set) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBuilder(FontManager.FontKey key, CompletableFuture<Optional<Font>> provider) voidaddReferenceBuilder(FontManager.FontKey key, FontLoader.Reference reference) builders()Returns the value of thebuildersrecord component.Returns the value of thedependenciesrecord component.final booleanIndicates whether some other object is "equal to" this one.fontId()Returns the value of thefontIdrecord component.voidforDependencies(Consumer<Identifier> callback) voidforOptionalDependencies(Consumer<Identifier> callback) private Stream<CompletableFuture<Optional<Font>>>getRequiredFontProviders(Function<Identifier, List<Font>> fontRetriever) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
fontId
The field for thefontIdrecord component. -
builders
The field for thebuildersrecord component. -
dependencies
The field for thedependenciesrecord component.
-
-
Constructor Details
-
FontEntry
- Mappings:
Namespace Name Mixin selector official <init>Lerd$e;<init>(Lacq;)Vintermediary <init>Lnet/minecraft/class_378$class_8537;<init>(Lnet/minecraft/class_2960;)Vnamed <init>Lnet/minecraft/client/font/FontManager$FontEntry;<init>(Lnet/minecraft/util/Identifier;)V
-
FontEntry
-
-
Method Details
-
addReferenceBuilder
- Mappings:
Namespace Name Mixin selector official aLerd$e;a(Lerd$a;Lero$b;)Vintermediary method_51631Lnet/minecraft/class_378$class_8537;method_51631(Lnet/minecraft/class_378$class_8534;Lnet/minecraft/class_389$class_8540;)Vnamed addReferenceBuilderLnet/minecraft/client/font/FontManager$FontEntry;addReferenceBuilder(Lnet/minecraft/client/font/FontManager$FontKey;Lnet/minecraft/client/font/FontLoader$Reference;)V
-
addBuilder
- Mappings:
Namespace Name Mixin selector official aLerd$e;a(Lerd$a;Ljava/util/concurrent/CompletableFuture;)Vintermediary method_51632Lnet/minecraft/class_378$class_8537;method_51632(Lnet/minecraft/class_378$class_8534;Ljava/util/concurrent/CompletableFuture;)Vnamed addBuilderLnet/minecraft/client/font/FontManager$FontEntry;addBuilder(Lnet/minecraft/client/font/FontManager$FontKey;Ljava/util/concurrent/CompletableFuture;)V
-
getImmediateProviders
- Mappings:
Namespace Name Mixin selector official dLerd$e;d()Ljava/util/stream/Stream;intermediary method_51635Lnet/minecraft/class_378$class_8537;method_51635()Ljava/util/stream/Stream;named getImmediateProvidersLnet/minecraft/client/font/FontManager$FontEntry;getImmediateProviders()Ljava/util/stream/Stream;
-
getRequiredFontProviders
- Mappings:
Namespace Name Mixin selector official aLerd$e;a(Ljava/util/function/Function;)Ljava/util/Optional;intermediary method_51634Lnet/minecraft/class_378$class_8537;method_51634(Ljava/util/function/Function;)Ljava/util/Optional;named getRequiredFontProvidersLnet/minecraft/client/font/FontManager$FontEntry;getRequiredFontProviders(Ljava/util/function/Function;)Ljava/util/Optional;
-
forDependencies
- Specified by:
forDependenciesin interfaceDependencyTracker.Dependencies<Identifier>- Mappings:
Namespace Name Mixin selector official aLaof$a;a(Ljava/util/function/Consumer;)Vintermediary method_51478Lnet/minecraft/class_8523$class_8524;method_51478(Ljava/util/function/Consumer;)Vnamed forDependenciesLnet/minecraft/resource/DependencyTracker$Dependencies;forDependencies(Ljava/util/function/Consumer;)V
-
forOptionalDependencies
- Specified by:
forOptionalDependenciesin interfaceDependencyTracker.Dependencies<Identifier>- Mappings:
Namespace Name Mixin selector official bLaof$a;b(Ljava/util/function/Consumer;)Vintermediary method_51480Lnet/minecraft/class_8523$class_8524;method_51480(Ljava/util/function/Consumer;)Vnamed forOptionalDependenciesLnet/minecraft/resource/DependencyTracker$Dependencies;forOptionalDependencies(Ljava/util/function/Consumer;)V
-
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). -
fontId
Returns the value of thefontIdrecord component.- Returns:
- the value of the
fontIdrecord component
-
builders
Returns the value of thebuildersrecord component.- Returns:
- the value of the
buildersrecord component
-
dependencies
Returns the value of thedependenciesrecord component.- Returns:
- the value of the
dependenciesrecord component
-