Record Class Font.UnihexFont
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.resource.asset.Font.UnihexFont
- Record Components:
fontId- The key identifier of the font.file- The Hex file path.sizeOverrides- List of spacing adjustments for subsets.
- All Implemented Interfaces:
Font.Glyph
- Enclosing class:
Font
public static record Font.UnihexFont(net.kyori.adventure.key.Key fontId, String file, List<Font.UnihexFont.Override> sizeOverrides)
extends Record
implements Font.Glyph
Unihex font provider with size overrides.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a dimensional spacing override within the Unihex font. -
Constructor Summary
ConstructorsConstructorDescriptionUnihexFont(net.kyori.adventure.key.Key fontId, String file, List<Font.UnihexFont.Override> sizeOverrides) Creates an instance of aUnihexFontrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.net.kyori.adventure.key.KeyfontId()Returns the value of thefontIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesizeOverridesrecord component.com.google.gson.JsonObjecttoJson()Serializes the provider into a JSON object representation.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UnihexFont
public UnihexFont(net.kyori.adventure.key.Key fontId, String file, List<Font.UnihexFont.Override> sizeOverrides) Creates an instance of aUnihexFontrecord class.- Parameters:
fontId- the value for thefontIdrecord componentfile- the value for thefilerecord componentsizeOverrides- the value for thesizeOverridesrecord component
-
-
Method Details
-
toJson
public com.google.gson.JsonObject toJson()Serializes the provider into a JSON object representation.- Returns:
- The generated JsonObject.
-
toString
-
hashCode
-
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). -
fontId
-
file
-
sizeOverrides
Returns the value of thesizeOverridesrecord component.- Returns:
- the value of the
sizeOverridesrecord component
-