Package com.mojang.blaze3d.font
Record Class SpaceProvider.Definition
java.lang.Object
java.lang.Record
com.mojang.blaze3d.font.SpaceProvider.Definition
- All Implemented Interfaces:
- GlyphProviderDefinition
- Enclosing class:
- SpaceProvider
public static record SpaceProvider.Definition(Map<Integer,Float> advances)
extends Record
implements GlyphProviderDefinition 
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.gui.font.providers.GlyphProviderDefinitionGlyphProviderDefinition.Loader, GlyphProviderDefinition.Reference
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDefinition(Map<Integer, Float> advances) Creates an instance of aDefinitionrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionadvances()Returns the value of theadvancesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()com.mojang.datafixers.util.Either<GlyphProviderDefinition.Loader,GlyphProviderDefinition.Reference> unpack()
- 
Field Details- 
advancesThe field for theadvancesrecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
DefinitionCreates an instance of aDefinitionrecord class.- Parameters:
- advances- the value for the- advancesrecord component
 
 
- 
- 
Method Details- 
type- Specified by:
- typein interface- GlyphProviderDefinition
 
- 
unpackpublic com.mojang.datafixers.util.Either<GlyphProviderDefinition.Loader,GlyphProviderDefinition.Reference> unpack()- Specified by:
- unpackin interface- GlyphProviderDefinition
 
- 
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).
- 
advancesReturns the value of theadvancesrecord component.- Returns:
- the value of the advancesrecord component
 
 
-