类 SimpleFont
java.lang.Object
net.minecraftforge.fml.earlydisplay.SimpleFont
-
嵌套类概要
嵌套类修饰符和类型类说明static final record
A piece of text to displayprivate static final record
private static final record
-
字段概要
字段修饰符和类型字段说明private final int
private final int
private final SimpleFont.Glyph[]
private final int
private final int
-
构造器概要
构造器构造器说明SimpleFont
(String fontName, int scale, int bufferSize, int textureNumber) Build the font and store it in the textureNumber location -
方法概要
修饰符和类型方法说明(专用程序包) int
descent()
generateVerticesForTexts
(int x, int y, SimpleBufferBuilder textBB, SimpleFont.DisplayText... texts) Generate vertices for a set of display texts(专用程序包) int
int
stringWidth
(String text) (专用程序包) int
-
字段详细资料
-
textureNumber
private final int textureNumber -
lineSpacing
private final int lineSpacing -
descent
private final int descent -
GLYPH_COUNT
private final int GLYPH_COUNT- 另请参阅:
-
glyphs
-
-
构造器详细资料
-
SimpleFont
Build the font and store it in the textureNumber location
-
-
方法详细资料
-
lineSpacing
int lineSpacing() -
textureNumber
int textureNumber() -
descent
int descent() -
stringWidth
-
generateVerticesForTexts
public SimpleBufferBuilder generateVerticesForTexts(int x, int y, SimpleBufferBuilder textBB, SimpleFont.DisplayText... texts) Generate vertices for a set of display texts- 参数:
x
- The starting screen x coordinatey
- The starting screen y coordinatetexts
- SomeSimpleFont.DisplayText
to display- 返回:
- a
SimpleBufferBuilder
that can draw the texts
-