Package net.minecraft.client.font
Record Class FontManager.Fonts.Cached
java.lang.Object
java.lang.Record
net.minecraft.client.font.FontManager.Fonts.Cached
- Record Components:
source-glyphs-
- Enclosing class:
FontManager.Fonts
@Environment(CLIENT)
private static record FontManager.Fonts.Cached(StyleSpriteSource source, GlyphProvider glyphs)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/font/FontManager$Fonts$Cachedintermediary net/minecraft/class_378$class_11638$class_11717official ghx$c$anamed sourceintermediary comp_4586official anamed glyphsintermediary comp_4587official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GlyphProviderThe field for theglyphsrecord component.private final StyleSpriteSourceThe field for thesourcerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.glyphs()Returns the value of theglyphsrecord component.final inthashCode()Returns a hash code value for this object.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Cached
Cached(StyleSpriteSource styleSpriteSource, GlyphProvider glyphProvider)
-
-
Method Details
-
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). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
glyphs
Returns the value of theglyphsrecord component.- Returns:
- the value of the
glyphsrecord component
-