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
Modifier and TypeFieldDescriptionprivate final List<FontManager.BuilderResult>
The field for thebuilders
record component.private final Set<ResourceLocation>
The field for thedependencies
record component.private final ResourceLocation
The field for thefontId
record component. -
Constructor Summary
ConstructorDescriptionUnresolvedBuilderBundle
(ResourceLocation p_284984_) UnresolvedBuilderBundle
(ResourceLocation fontId, List<FontManager.BuilderResult> builders, Set<ResourceLocation> dependencies) Creates an instance of aUnresolvedBuilderBundle
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(FontManager.BuilderId p_284935_, CompletableFuture<Optional<GlyphProvider>> p_284966_) void
add
(FontManager.BuilderId p_286837_, GlyphProviderDefinition.Reference p_286500_) builders()
Returns the value of thebuilders
record component.Returns the value of thedependencies
record component.final boolean
Indicates whether some other object is "equal to" this one.fontId()
Returns the value of thefontId
record component.final int
hashCode()
Returns a hash code value for this object.private Stream<CompletableFuture<Optional<GlyphProvider>>>
resolve
(Function<ResourceLocation, List<GlyphProvider>> p_285118_) final String
toString()
Returns a string representation of this record class.void
visitOptionalDependencies
(Consumer<ResourceLocation> p_285405_) void
visitRequiredDependencies
(Consumer<ResourceLocation> p_285391_)
-
Field Details
-
fontId
The field for thefontId
record component. -
builders
The field for thebuilders
record component. -
dependencies
The field for thedependencies
record component.
-
-
Constructor Details
-
UnresolvedBuilderBundle
-
UnresolvedBuilderBundle
UnresolvedBuilderBundle(ResourceLocation fontId, List<FontManager.BuilderResult> builders, Set<ResourceLocation> dependencies) Creates an instance of aUnresolvedBuilderBundle
record class.- Parameters:
fontId
- the value for thefontId
record componentbuilders
- the value for thebuilders
record componentdependencies
- the value for thedependencies
record component
-
-
Method Details
-
add
-
add
public void add(FontManager.BuilderId p_284935_, CompletableFuture<Optional<GlyphProvider>> p_284966_) -
listBuilders
-
resolve
public Optional<List<GlyphProvider>> resolve(Function<ResourceLocation, List<GlyphProvider>> p_285118_) -
visitRequiredDependencies
- Specified by:
visitRequiredDependencies
in interfaceDependencySorter.Entry<ResourceLocation>
-
visitOptionalDependencies
- Specified by:
visitOptionalDependencies
in 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 thefontId
record component.- Returns:
- the value of the
fontId
record component
-
builders
Returns the value of thebuilders
record component.- Returns:
- the value of the
builders
record component
-
dependencies
Returns the value of thedependencies
record component.- Returns:
- the value of the
dependencies
record component
-