Class SimpleFont
java.lang.Object
net.minecraftforge.fml.earlydisplay.SimpleFont
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final recordA piece of text to displayprivate static final recordprivate static final record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate SimpleFont.Glyph[]private final intprivate final int
- 
Constructor SummaryConstructorsConstructorDescriptionSimpleFont(String fontName, int scale, int bufferSize, int textureNumber) Build the font and store it in the textureNumber location
- 
Method SummaryModifier and TypeMethodDescription(package private) intdescent()generateVerticesForTexts(int x, int y, SimpleBufferBuilder textBB, SimpleFont.DisplayText... texts) Generate vertices for a set of display texts(package private) intintstringWidth(String text) (package private) int
- 
Field Details- 
textureNumberprivate final int textureNumber
- 
lineSpacingprivate final int lineSpacing
- 
descentprivate final int descent
- 
GLYPH_COUNTprivate final int GLYPH_COUNT- See Also:
 
- 
glyphs
 
- 
- 
Constructor Details- 
SimpleFontBuild the font and store it in the textureNumber location
 
- 
- 
Method Details- 
lineSpacingint lineSpacing()
- 
textureNumberint textureNumber()
- 
descentint descent()
- 
stringWidth
- 
generateVerticesForTextspublic SimpleBufferBuilder generateVerticesForTexts(int x, int y, SimpleBufferBuilder textBB, SimpleFont.DisplayText... texts) Generate vertices for a set of display texts- Parameters:
- x- The starting screen x coordinate
- y- The starting screen y coordinate
- texts- Some- SimpleFont.DisplayTextto display
- Returns:
- a SimpleBufferBuilderthat can draw the texts
 
 
-