Package net.minecraft.client.gui.font
Record Class FontManager.UnresolvedBuilderBundle
java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.FontManager.UnresolvedBuilderBundle
- All Implemented Interfaces:
DependencySorter.Entry<ResourceLocation>
- Enclosing class:
FontManager
static record FontManager.UnresolvedBuilderBundle(ResourceLocation fontId, List<FontManager.BuilderResult> builders, Set<ResourceLocation> dependencies)
extends Record
implements DependencySorter.Entry<ResourceLocation>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<FontManager.BuilderResult> The field for thebuildersrecord component.private final Set<ResourceLocation> The field for thedependenciesrecord component.private final ResourceLocationThe field for thefontIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnresolvedBuilderBundle(ResourceLocation p_284984_) UnresolvedBuilderBundle(ResourceLocation fontId, List<FontManager.BuilderResult> builders, Set<ResourceLocation> dependencies) Creates an instance of aUnresolvedBuilderBundlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(FontManager.BuilderId p_284935_, FontOption.Filter p_326423_, CompletableFuture<Optional<GlyphProvider>> p_284966_) voidadd(FontManager.BuilderId p_286837_, FontOption.Filter p_326179_, GlyphProviderDefinition.Reference p_286500_) 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.final inthashCode()Returns a hash code value for this object.private Stream<CompletableFuture<Optional<GlyphProvider>>> resolve(Function<ResourceLocation, List<GlyphProvider.Conditional>> p_285118_) final StringtoString()Returns a string representation of this record class.voidvisitOptionalDependencies(Consumer<ResourceLocation> p_285405_) voidvisitRequiredDependencies(Consumer<ResourceLocation> p_285391_)
-
Field Details
-
fontId
The field for thefontIdrecord component. -
builders
The field for thebuildersrecord component. -
dependencies
The field for thedependenciesrecord component.
-
-
Constructor Details
-
UnresolvedBuilderBundle
-
UnresolvedBuilderBundle
UnresolvedBuilderBundle(ResourceLocation fontId, List<FontManager.BuilderResult> builders, Set<ResourceLocation> dependencies) Creates an instance of aUnresolvedBuilderBundlerecord class.- Parameters:
fontId- the value for thefontIdrecord componentbuilders- the value for thebuildersrecord componentdependencies- the value for thedependenciesrecord component
-
-
Method Details
-
add
public void add(FontManager.BuilderId p_286837_, FontOption.Filter p_326179_, GlyphProviderDefinition.Reference p_286500_) -
add
public void add(FontManager.BuilderId p_284935_, FontOption.Filter p_326423_, CompletableFuture<Optional<GlyphProvider>> p_284966_) -
listBuilders
-
resolve
public Optional<List<GlyphProvider.Conditional>> resolve(Function<ResourceLocation, List<GlyphProvider.Conditional>> p_285118_) -
visitRequiredDependencies
- Specified by:
visitRequiredDependenciesin interfaceDependencySorter.Entry<ResourceLocation>
-
visitOptionalDependencies
- Specified by:
visitOptionalDependenciesin interfaceDependencySorter.Entry<ResourceLocation>
-
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
-