类 Font
java.lang.Object
net.minecraft.client.gui.Font
- 所有已实现的接口:
IForgeFont
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明static final int
private static final float
(专用程序包) final boolean
private final Function<ResourceLocation,
FontSet> final int
final RandomSource
private static final org.joml.Vector3f
private final StringSplitter
从接口继承的字段 net.minecraftforge.client.extensions.IForgeFont
ELLIPSIS
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static int
adjustColor
(int pColor) bidirectionalShaping
(String pText) int
drawInBatch
(String pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords) int
drawInBatch
(String pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords, boolean pBidirectional) int
drawInBatch
(Component pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords) int
drawInBatch
(FormattedCharSequence pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords) void
drawInBatch8xOutline
(FormattedCharSequence pText, float pX, float pY, int pColor, int pBackgroundColor, org.joml.Matrix4f pMatrix, MultiBufferSource pBufferSource, int pPackedLightCoords) private int
drawInternal
(String pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords, boolean pBidirectional) private int
drawInternal
(FormattedCharSequence pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords) (专用程序包) FontSet
getFontSet
(ResourceLocation pFontLocation) boolean
plainSubstrByWidth
(String pText, int pMaxWidth) plainSubstrByWidth
(String pText, int pMaxWidth, boolean pTail) (专用程序包) void
renderChar
(BakedGlyph pGlyph, boolean pBold, boolean pItalic, float pBoldOffset, float pX, float pY, org.joml.Matrix4f pMatrix, VertexConsumer pBuffer, float pRed, float pGreen, float pBlue, float pAlpha, int pPackedLight) private float
renderText
(String pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords) private float
renderText
(FormattedCharSequence pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords) self()
split
(FormattedText pText, int pMaxWidth) substrByWidth
(FormattedText pText, int pMaxWidth) int
int
width
(FormattedText pText) int
width
(FormattedCharSequence pText) int
wordWrapHeight
(String pText, int pMaxWidth) int
wordWrapHeight
(FormattedText pText, int pMaxWidth) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraftforge.client.extensions.IForgeFont
ellipsize
-
字段详细资料
-
EFFECT_DEPTH
private static final float EFFECT_DEPTH- 另请参阅:
-
SHADOW_OFFSET
private static final org.joml.Vector3f SHADOW_OFFSET -
ALPHA_CUTOFF
public static final int ALPHA_CUTOFF- 另请参阅:
-
lineHeight
public final int lineHeight- 另请参阅:
-
random
-
fonts
-
filterFishyGlyphs
final boolean filterFishyGlyphs -
splitter
-
-
构造器详细资料
-
Font
-
-
方法详细资料
-
getFontSet
-
bidirectionalShaping
-
drawInBatch
public int drawInBatch(String pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords) -
drawInBatch
public int drawInBatch(String pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords, boolean pBidirectional) -
drawInBatch
public int drawInBatch(Component pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords) -
drawInBatch
public int drawInBatch(FormattedCharSequence pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords) -
drawInBatch8xOutline
public void drawInBatch8xOutline(FormattedCharSequence pText, float pX, float pY, int pColor, int pBackgroundColor, org.joml.Matrix4f pMatrix, MultiBufferSource pBufferSource, int pPackedLightCoords) -
adjustColor
private static int adjustColor(int pColor) -
drawInternal
private int drawInternal(String pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords, boolean pBidirectional) -
drawInternal
private int drawInternal(FormattedCharSequence pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords) -
renderText
private float renderText(String pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords) -
renderText
private float renderText(FormattedCharSequence pText, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pMatrix, MultiBufferSource pBuffer, Font.DisplayMode pDisplayMode, int pBackgroundColor, int pPackedLightCoords) -
renderChar
void renderChar(BakedGlyph pGlyph, boolean pBold, boolean pItalic, float pBoldOffset, float pX, float pY, org.joml.Matrix4f pMatrix, VertexConsumer pBuffer, float pRed, float pGreen, float pBlue, float pAlpha, int pPackedLight) -
width
-
width
-
width
-
plainSubstrByWidth
-
plainSubstrByWidth
-
substrByWidth
-
wordWrapHeight
-
wordWrapHeight
-
split
-
isBidirectional
public boolean isBidirectional() -
getSplitter
-
self
- 指定者:
self
在接口中IForgeFont
-