Record Class TTFFile
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.common.font.TTFFile
public record TTFFile(net.minecraft.resources.Identifier id, net.minecraft.resources.Identifier resource, TTFFile.FontVariant variant, short[] glyphRanges)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTTFFile(net.minecraft.resources.Identifier id, net.minecraft.resources.Identifier resource, TTFFile.FontVariant variant, short[] glyphRanges) Creates an instance of aTTFFilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.short[]Returns the value of theglyphRangesrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.Identifierid()Returns the value of theidrecord component.byte[]load(net.minecraft.server.packs.resources.ResourceManager resourceManager) net.minecraft.resources.Identifierresource()Returns the value of theresourcerecord component.final StringtoString()Returns a string representation of this record class.variant()Returns the value of thevariantrecord component.
-
Field Details
-
DEFAULT_GLYPH_RANGES
public static final short[] DEFAULT_GLYPH_RANGES -
GLYPH_RANGES_MINIMAL
public static final short[] GLYPH_RANGES_MINIMAL -
JETBRAINS_MONO_LIGHT
-
JETBRAINS_MONO_MEDIUM
-
JETBRAINS_MONO_SEMIBOLD
-
JETBRAINS_MONO_REGULAR
-
JETBRAINS_MONO_BOLD
-
JETBRAINS_MONO_ITALIC
-
JETBRAINS_MONO_BOLD_ITALIC
-
JETBRAINS_MONO_NERDFONT_ALL
-
FALLBACK_JB
-
-
Constructor Details
-
TTFFile
public TTFFile(net.minecraft.resources.Identifier id, net.minecraft.resources.Identifier resource, TTFFile.FontVariant variant, short[] glyphRanges) Creates an instance of aTTFFilerecord class.- Parameters:
id- the value for theidrecord componentresource- the value for theresourcerecord componentvariant- the value for thevariantrecord componentglyphRanges- the value for theglyphRangesrecord component
-
-
Method Details
-
load
public byte[] load(net.minecraft.server.packs.resources.ResourceManager resourceManager) -
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). -
id
public net.minecraft.resources.Identifier id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
resource
public net.minecraft.resources.Identifier resource()Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
variant
Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-
glyphRanges
public short[] glyphRanges()Returns the value of theglyphRangesrecord component.- Returns:
- the value of the
glyphRangesrecord component
-