Record Class SimpleFont.Glyph
java.lang.Object
java.lang.Record
net.minecraftforge.fml.earlydisplay.SimpleFont.Glyph
- Enclosing class:
- SimpleFont
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGlyph(char c, int charwidth, int[] pos, float[] uv) Creates an instance of aGlyphrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncharc()Returns the value of thecrecord component.intReturns the value of thecharwidthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.(package private) SimpleFont.PosloadQuad(SimpleFont.Pos pos, int colour, SimpleBufferBuilder bb) int[]pos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.float[]uv()Returns the value of theuvrecord component.
-
Field Details
-
c
private final char cThe field for thecrecord component. -
charwidth
private final int charwidthThe field for thecharwidthrecord component. -
pos
private final int[] posThe field for theposrecord component. -
uv
private final float[] uvThe field for theuvrecord component.
-
-
Constructor Details
-
Glyph
private Glyph(char c, int charwidth, int[] pos, float[] uv) Creates an instance of aGlyphrecord class.- Parameters:
c- the value for thecrecord componentcharwidth- the value for thecharwidthrecord componentpos- the value for theposrecord componentuv- the value for theuvrecord component
-
-
Method Details
-
loadQuad
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
c
public char c()Returns the value of thecrecord component.- Returns:
- the value of the
crecord component
-
charwidth
public int charwidth()Returns the value of thecharwidthrecord component.- Returns:
- the value of the
charwidthrecord component
-
pos
public int[] pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
uv
public float[] uv()Returns the value of theuvrecord component.- Returns:
- the value of the
uvrecord component
-