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 Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.font.providers.GlyphProviderDefinition
GlyphProviderDefinition.Conditional, GlyphProviderDefinition.Loader, GlyphProviderDefinition.Reference
-
Field Summary
Modifier and TypeFieldDescriptionThe field for theadvances
record component.static final com.mojang.serialization.MapCodec
<SpaceProvider.Definition> Fields inherited from interface net.minecraft.client.gui.font.providers.GlyphProviderDefinition
MAP_CODEC
-
Constructor Summary
ConstructorDescriptionDefinition
(Map<Integer, Float> advances) Creates an instance of aDefinition
record class. -
Method Summary
Modifier and TypeMethodDescriptionadvances()
Returns the value of theadvances
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.type()
com.mojang.datafixers.util.Either
<GlyphProviderDefinition.Loader, GlyphProviderDefinition.Reference> unpack()
-
Field Details
-
advances
The field for theadvances
record component. -
CODEC
-
-
Constructor Details
-
Definition
Creates an instance of aDefinition
record class.- Parameters:
advances
- the value for theadvances
record component
-
-
Method Details
-
type
- Specified by:
type
in interfaceGlyphProviderDefinition
-
unpack
public com.mojang.datafixers.util.Either<GlyphProviderDefinition.Loader,GlyphProviderDefinition.Reference> unpack()- Specified by:
unpack
in interfaceGlyphProviderDefinition
-
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)
. -
advances
Returns the value of theadvances
record component.- Returns:
- the value of the
advances
record component
-