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, com.mojang.datafixers.util.Either<CompletableFuture<Optional<GlyphProvider>>,ResourceLocation> result)
extends Record 
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final FontManager.BuilderIdThe field for theidrecord component.private final com.mojang.datafixers.util.Either<CompletableFuture<Optional<GlyphProvider>>,ResourceLocation> The field for theresultrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionBuilderResult(FontManager.BuilderId id, com.mojang.datafixers.util.Either<CompletableFuture<Optional<GlyphProvider>>, ResourceLocation> result) Creates an instance of aBuilderResultrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.resolve(Function<ResourceLocation, List<GlyphProvider>> 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- 
idThe field for theidrecord component.
- 
resultprivate final com.mojang.datafixers.util.Either<CompletableFuture<Optional<GlyphProvider>>,ResourceLocation> resultThe field for theresultrecord component.
 
- 
- 
Constructor Details- 
BuilderResultBuilderResult(FontManager.BuilderId id, com.mojang.datafixers.util.Either<CompletableFuture<Optional<GlyphProvider>>, ResourceLocation> result) Creates an instance of aBuilderResultrecord class.- Parameters:
- id- the value for the- idrecord component
- result- the value for the- resultrecord component
 
 
- 
- 
Method Details- 
resolvepublic Optional<List<GlyphProvider>> resolve(Function<ResourceLocation, List<GlyphProvider>> p_284942_) 
- 
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).
- 
idReturns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
resultpublic com.mojang.datafixers.util.Either<CompletableFuture<Optional<GlyphProvider>>,ResourceLocation> result()Returns the value of theresultrecord component.- Returns:
- the value of the resultrecord component
 
 
-