Record Class SimpleFont.Glyph
java.lang.Object
java.lang.Record
net.minecraftforge.fml.earlydisplay.SimpleFont.Glyph
- Enclosing class:
- SimpleFont
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateGlyph(char c, int charwidth, int[] pos, float[] uv) Creates an instance of aGlyphrecord class.
- 
Method SummaryModifier 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- 
cprivate final char cThe field for thecrecord component.
- 
charwidthprivate final int charwidthThe field for thecharwidthrecord component.
- 
posprivate final int[] posThe field for theposrecord component.
- 
uvprivate final float[] uvThe field for theuvrecord component.
 
- 
- 
Constructor Details- 
Glyphprivate Glyph(char c, int charwidth, int[] pos, float[] uv) Creates an instance of aGlyphrecord class.- Parameters:
- c- the value for the- crecord component
- charwidth- the value for the- charwidthrecord component
- pos- the value for the- posrecord component
- uv- the value for the- uvrecord component
 
 
- 
- 
Method Details- 
loadQuad
- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
cpublic char c()Returns the value of thecrecord component.- Returns:
- the value of the crecord component
 
- 
charwidthpublic int charwidth()Returns the value of thecharwidthrecord component.- Returns:
- the value of the charwidthrecord component
 
- 
pospublic int[] pos()Returns the value of theposrecord component.- Returns:
- the value of the posrecord component
 
- 
uvpublic float[] uv()Returns the value of theuvrecord component.- Returns:
- the value of the uvrecord component
 
 
-