Package net.minecraft.client.gui.font
Record Class FontManager.BuilderResult
java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.FontManager.BuilderResult
- Enclosing class:
FontManager
static record FontManager.BuilderResult(FontManager.BuilderId id, FontOption.Filter filter, com.mojang.datafixers.util.Either<CompletableFuture<Optional<GlyphProvider>>,ResourceLocation> result)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FontOption.FilterThe field for thefilterrecord component.private final FontManager.BuilderIdThe field for theidrecord component.private final com.mojang.datafixers.util.Either<CompletableFuture<Optional<GlyphProvider>>, ResourceLocation> The field for theresultrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBuilderResult(FontManager.BuilderId id, FontOption.Filter filter, com.mojang.datafixers.util.Either<CompletableFuture<Optional<GlyphProvider>>, ResourceLocation> result) Creates an instance of aBuilderResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.private GlyphProvider.ConditionalmergeFilters(GlyphProvider.Conditional p_326502_) resolve(Function<ResourceLocation, List<GlyphProvider.Conditional>> p_284942_) com.mojang.datafixers.util.Either<CompletableFuture<Optional<GlyphProvider>>, ResourceLocation> 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<GlyphProvider>>,ResourceLocation> resultThe field for theresultrecord component.
-
-
Constructor Details
-
BuilderResult
BuilderResult(FontManager.BuilderId id, FontOption.Filter filter, com.mojang.datafixers.util.Either<CompletableFuture<Optional<GlyphProvider>>, ResourceLocation> result) Creates an instance of aBuilderResultrecord class.- Parameters:
id- the value for theidrecord componentfilter- the value for thefilterrecord componentresult- the value for theresultrecord component
-
-
Method Details
-
resolve
public Optional<List<GlyphProvider.Conditional>> resolve(Function<ResourceLocation, List<GlyphProvider.Conditional>> p_284942_) -
mergeFilters
-
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
public com.mojang.datafixers.util.Either<CompletableFuture<Optional<GlyphProvider>>,ResourceLocation> result()Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-