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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionUnresolvedBuilderBundle(ResourceLocation p_284984_) UnresolvedBuilderBundle(ResourceLocation fontId, List<FontManager.BuilderResult> builders, Set<ResourceLocation> dependencies) Creates an instance of aUnresolvedBuilderBundlerecord class.
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(FontManager.BuilderId p_284935_, CompletableFuture<Optional<GlyphProvider>> p_284966_) voidadd(FontManager.BuilderId p_286837_, 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>> p_285118_) final StringtoString()Returns a string representation of this record class.voidvisitOptionalDependencies(Consumer<ResourceLocation> p_285405_) voidvisitRequiredDependencies(Consumer<ResourceLocation> p_285391_) 
- 
Field Details- 
fontIdThe field for thefontIdrecord component.
- 
buildersThe field for thebuildersrecord component.
- 
dependenciesThe field for thedependenciesrecord component.
 
- 
- 
Constructor Details- 
UnresolvedBuilderBundle
- 
UnresolvedBuilderBundleUnresolvedBuilderBundle(ResourceLocation fontId, List<FontManager.BuilderResult> builders, Set<ResourceLocation> dependencies) Creates an instance of aUnresolvedBuilderBundlerecord class.- Parameters:
- fontId- the value for the- fontIdrecord component
- builders- the value for the- buildersrecord component
- dependencies- the value for the- dependenciesrecord component
 
 
- 
- 
Method Details- 
add
- 
addpublic void add(FontManager.BuilderId p_284935_, CompletableFuture<Optional<GlyphProvider>> p_284966_) 
- 
listBuilders
- 
resolvepublic Optional<List<GlyphProvider>> resolve(Function<ResourceLocation, List<GlyphProvider>> p_285118_) 
- 
visitRequiredDependencies- Specified by:
- visitRequiredDependenciesin interface- DependencySorter.Entry<ResourceLocation>
 
- 
visitOptionalDependencies- Specified by:
- visitOptionalDependenciesin interface- DependencySorter.Entry<ResourceLocation>
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
fontIdReturns the value of thefontIdrecord component.- Returns:
- the value of the fontIdrecord component
 
- 
buildersReturns the value of thebuildersrecord component.- Returns:
- the value of the buildersrecord component
 
- 
dependenciesReturns the value of thedependenciesrecord component.- Returns:
- the value of the dependenciesrecord component
 
 
-