Record Class SimpleFont.Glyph
java.lang.Object
java.lang.Record
net.minecraftforge.fml.earlydisplay.SimpleFont.Glyph
- Enclosing class:
- SimpleFont
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
Glyph
(char c, int charwidth, int[] pos, float[] uv) Creates an instance of aGlyph
record class. -
Method Summary
Modifier and TypeMethodDescriptionchar
c()
Returns the value of thec
record component.int
Returns the value of thecharwidth
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.(package private) SimpleFont.Pos
loadQuad
(SimpleFont.Pos pos, int colour, SimpleBufferBuilder bb) int[]
pos()
Returns the value of thepos
record component.final String
toString()
Returns a string representation of this record class.float[]
uv()
Returns the value of theuv
record component.
-
Field Details
-
c
private final char cThe field for thec
record component. -
charwidth
private final int charwidthThe field for thecharwidth
record component. -
pos
private final int[] posThe field for thepos
record component. -
uv
private final float[] uvThe field for theuv
record component.
-
-
Constructor Details
-
Glyph
private Glyph(char c, int charwidth, int[] pos, float[] uv) Creates an instance of aGlyph
record class.- Parameters:
c
- the value for thec
record componentcharwidth
- the value for thecharwidth
record componentpos
- the value for thepos
record componentuv
- the value for theuv
record 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 thec
record component.- Returns:
- the value of the
c
record component
-
charwidth
public int charwidth()Returns the value of thecharwidth
record component.- Returns:
- the value of the
charwidth
record component
-
pos
public int[] pos()Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
uv
public float[] uv()Returns the value of theuv
record component.- Returns:
- the value of the
uv
record component
-