Uses of Class
net.minecraft.client.gui.Font
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
Extension interfaces for
client
-only classes.-
Uses of Font in net.minecraft.client
-
Uses of Font in net.minecraft.client.gui
Modifier and TypeMethodDescriptionprotected void
Gui.drawBackdrop
(PoseStack p_93040_, Font p_93041_, int p_93042_, int p_93043_, int p_93044_) static void
GuiComponent.drawCenteredString
(PoseStack p_93209_, Font p_93210_, String p_93211_, int p_93212_, int p_93213_, int p_93214_) static void
GuiComponent.drawCenteredString
(PoseStack p_93216_, Font p_93217_, Component p_93218_, int p_93219_, int p_93220_, int p_93221_) static void
GuiComponent.drawCenteredString
(PoseStack p_168750_, Font p_168751_, FormattedCharSequence p_168752_, int p_168753_, int p_168754_, int p_168755_) static void
GuiComponent.drawString
(PoseStack p_93237_, Font p_93238_, String p_93239_, int p_93240_, int p_93241_, int p_93242_) static void
GuiComponent.drawString
(PoseStack p_93244_, Font p_93245_, Component p_93246_, int p_93247_, int p_93248_, int p_93249_) static void
GuiComponent.drawString
(PoseStack p_168757_, Font p_168758_, FormattedCharSequence p_168759_, int p_168760_, int p_168761_, int p_168762_) -
Uses of Font in net.minecraft.client.gui.components
Modifier and TypeFieldDescriptionprivate final Font
AbstractStringWidget.font
(package private) final Font
CommandSuggestions.font
private final Font
DebugScreenOverlay.font
private final Font
EditBox.font
private final Font
MultiLineEditBox.font
private final Font
MultilineTextField.font
private final Font
PlainTextButton.font
Modifier and TypeMethodDescriptionstatic MultiLineLabel
static MultiLineLabel
static MultiLineLabel
MultiLineLabel.create
(Font p_94342_, FormattedText p_94343_, int p_94344_) static MultiLineLabel
MultiLineLabel.create
(Font p_94346_, FormattedText p_94347_, int p_94348_, int p_94349_) static MultiLineLabel
MultiLineLabel.createFixed
(Font p_94362_, List<MultiLineLabel.TextWithWidth> p_94363_) private void
TabButton.renderFocusUnderline
(PoseStack p_275458_, Font p_275475_, int p_275367_) protected void
AbstractWidget.renderScrollingString
(PoseStack p_275527_, Font p_275333_, int p_275661_, int p_275656_) protected static void
AbstractWidget.renderScrollingString
(PoseStack p_275352_, Font p_275395_, Component p_275742_, int p_275307_, int p_275548_, int p_275592_, int p_275385_, int p_275291_) void
AbstractButton.renderString
(PoseStack p_275258_, Font p_275290_, int p_275734_) void
TabButton.renderString
(PoseStack p_275321_, Font p_275208_, int p_275293_) void
TextAndImageButton.renderString
(PoseStack p_275425_, Font p_275206_, int p_275610_) static List<FormattedCharSequence>
ComponentRenderUtils.wrapComponents
(FormattedText p_94006_, int p_94007_, Font p_94008_) ModifierConstructorDescriptionAbstractStringWidget
(int p_270910_, int p_270297_, int p_270088_, int p_270842_, Component p_270063_, Font p_270327_) AccessibilityOnboardingTextWidget
(Font p_265441_, Component p_265136_, int p_265628_) CommandSuggestions
(Minecraft p_93871_, Screen p_93872_, EditBox p_93873_, Font p_93874_, boolean p_93875_, boolean p_93876_, int p_93877_, int p_93878_, boolean p_93879_, int p_93880_) EditBox
(Font p_94106_, int p_94107_, int p_94108_, int p_94109_, int p_94110_, EditBox p_94111_, Component p_94112_) MultiLineEditBox
(Font p_239008_, int p_239009_, int p_239010_, int p_239011_, int p_239012_, Component p_239013_, Component p_239014_) MultilineTextField
(Font p_239611_, int p_239612_) MultiLineTextWidget
(int p_270325_, int p_270355_, Component p_270069_, Font p_270673_) MultiLineTextWidget
(Component p_270532_, Font p_270639_) PlainTextButton
(int p_211755_, int p_211756_, int p_211757_, int p_211758_, Component p_211759_, Button.OnPress p_211760_, Font p_211761_) StringWidget
(int p_268199_, int p_268137_, int p_268178_, int p_268169_, Component p_268285_, Font p_268047_) StringWidget
(int p_268183_, int p_268082_, Component p_268069_, Font p_268121_) StringWidget
(Component p_268211_, Font p_267963_) -
Uses of Font in net.minecraft.client.gui.font
-
Uses of Font in net.minecraft.client.gui.screens
Modifier and TypeFieldDescriptionprotected Font
Screen.font
private final Font
TitleScreen.WarningLabel.font
The field for thefont
record component.private Font
Screen.tooltipFont
Modifier and TypeMethodDescriptionTitleScreen.WarningLabel.font()
Returns the value of thefont
record component.Modifier and TypeMethodDescriptionvoid
Screen.renderComponentTooltip
(PoseStack poseStack, List<? extends FormattedText> tooltips, int mouseX, int mouseY, Font font) void
Screen.renderComponentTooltip
(PoseStack poseStack, List<? extends FormattedText> tooltips, int mouseX, int mouseY, Font font, ItemStack stack) void
Screen.renderTooltip
(PoseStack poseStack, List<? extends FormattedCharSequence> lines, int x, int y, Font font) void
Screen.renderTooltip
(PoseStack poseStack, List<Component> textComponents, Optional<TooltipComponent> tooltipComponent, int x, int y, Font font) void
Screen.renderTooltip
(PoseStack poseStack, List<Component> textComponents, Optional<TooltipComponent> tooltipComponent, int x, int y, Font font, ItemStack stack) ModifierConstructorDescription(package private)
WarningLabel
(Font font, MultiLineLabel label, int x, int y) Creates an instance of aWarningLabel
record class. -
Uses of Font in net.minecraft.client.gui.screens.inventory
Modifier and TypeMethodDescriptionint
BookEditScreen.DisplayCache.getIndexAtPosition
(Font p_98214_, BookEditScreen.Pos2i p_98215_) EnchantmentNames.getRandomName
(Font p_98738_, int p_98739_) -
Uses of Font in net.minecraft.client.gui.screens.inventory.tooltip
Modifier and TypeMethodDescriptionint
int
int
void
ClientBundleTooltip.renderImage
(Font p_194042_, int p_194043_, int p_194044_, PoseStack p_194045_, ItemRenderer p_194046_) default void
ClientTooltipComponent.renderImage
(Font p_194048_, int p_194049_, int p_194050_, PoseStack p_194051_, ItemRenderer p_194052_) private void
ClientBundleTooltip.renderSlot
(int p_276034_, int p_276061_, int p_276038_, boolean p_276027_, Font p_276025_, PoseStack p_276020_, ItemRenderer p_276057_) void
ClientTextTooltip.renderText
(Font p_254285_, int p_254192_, int p_253697_, org.joml.Matrix4f p_253880_, MultiBufferSource.BufferSource p_254231_) default void
ClientTooltipComponent.renderText
(Font p_169953_, int p_169954_, int p_169955_, org.joml.Matrix4f p_253692_, MultiBufferSource.BufferSource p_169957_) -
Uses of Font in net.minecraft.client.gui.screens.telemetry
Modifier and TypeMethodDescriptionvoid
void
void
ModifierConstructorDescriptionTelemetryEventWidget
(int p_261584_, int p_261895_, int p_261803_, int p_261967_, Font p_261662_) -
Uses of Font in net.minecraft.client.renderer.blockentity
Modifier and TypeFieldDescriptionfinal Font
BlockEntityRenderDispatcher.font
private final Font
BlockEntityRendererProvider.Context.font
private final Font
SignRenderer.font
ModifierConstructorDescriptionBlockEntityRenderDispatcher
(Font p_234432_, EntityModelSet p_234433_, Supplier<BlockRenderDispatcher> p_234434_, Supplier<ItemRenderer> p_234435_, Supplier<EntityRenderDispatcher> p_234436_) Context
(BlockEntityRenderDispatcher p_234440_, BlockRenderDispatcher p_234441_, ItemRenderer p_234442_, EntityRenderDispatcher p_234443_, EntityModelSet p_234444_, Font p_234445_) -
Uses of Font in net.minecraft.client.renderer.entity
Modifier and TypeFieldDescriptionprivate final Font
DisplayRenderer.TextDisplayRenderer.font
private final Font
EntityRenderDispatcher.font
private final Font
EntityRenderer.font
private final Font
EntityRendererProvider.Context.font
Modifier and TypeMethodDescriptionEntityRenderer.getFont()
EntityRendererProvider.Context.getFont()
Modifier and TypeMethodDescriptionvoid
ItemRenderer.renderGuiItemDecorations
(PoseStack p_275553_, Font p_275636_, ItemStack p_275514_, int p_275695_, int p_275460_) void
ItemRenderer.renderGuiItemDecorations
(PoseStack p_275269_, Font p_275652_, ItemStack p_275590_, int p_275202_, int p_275508_, String p_275302_) ModifierConstructorDescriptionContext
(EntityRenderDispatcher p_234590_, ItemRenderer p_234591_, BlockRenderDispatcher p_234592_, ItemInHandRenderer p_234593_, ResourceManager p_234594_, EntityModelSet p_234595_, Font p_234596_) EntityRenderDispatcher
(Minecraft p_234579_, TextureManager p_234580_, ItemRenderer p_234581_, BlockRenderDispatcher p_234582_, Font p_234583_, Options p_234584_, EntityModelSet p_234585_) -
Uses of Font in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic Font
ForgeHooksClient.getTooltipFont
(@Nullable Font forcedFont, @NotNull ItemStack stack, Font fallbackFont) Modifier and TypeMethodDescriptionstatic List<ClientTooltipComponent>
ForgeHooksClient.gatherTooltipComponents
(ItemStack stack, List<? extends FormattedText> textElements, int mouseX, int screenWidth, int screenHeight, @Nullable Font forcedFont, Font fallbackFont) static List<ClientTooltipComponent>
ForgeHooksClient.gatherTooltipComponents
(ItemStack stack, List<? extends FormattedText> textElements, Optional<TooltipComponent> itemComponent, int mouseX, int screenWidth, int screenHeight, @Nullable Font forcedFont, Font fallbackFont) static Font
ForgeHooksClient.getTooltipFont
(@Nullable Font forcedFont, @NotNull ItemStack stack, Font fallbackFont) static RenderTooltipEvent.Color
ForgeHooksClient.onRenderTooltipColor
(@NotNull ItemStack stack, PoseStack poseStack, int x, int y, @NotNull Font font, @NotNull List<ClientTooltipComponent> components) static RenderTooltipEvent.Pre
ForgeHooksClient.onRenderTooltipPre
(@NotNull ItemStack stack, PoseStack poseStack, int x, int y, int screenWidth, int screenHeight, @NotNull List<ClientTooltipComponent> components, @Nullable Font forcedFont, @NotNull Font fallbackFont) default boolean
Is called after ItemRenderer.renderGuiItemDecorations(PoseStack, Font, ItemStack, int, int, String) is done rendering.default boolean
Deprecated, for removal: This API element is subject to removal in a future version.void
ItemDecoratorHandler.render
(PoseStack poseStack, Font font, ItemStack stack, int xOffset, int yOffset) static void
ForgeHooksClient.renderMainMenu
(TitleScreen gui, PoseStack poseStack, Font font, int width, int height, int alpha) -
Uses of Font in net.minecraftforge.client.event
Modifier and TypeMethodDescription@NotNull Font
RenderTooltipEvent.getFont()
Returns The font used to render the text.Modifier and TypeMethodDescriptionvoid
Sets the font to be used to render text.ModifierConstructorDescriptionColor
(@NotNull ItemStack stack, PoseStack poseStack, int x, int y, @NotNull Font fr, int background, int borderStart, int borderEnd, @NotNull List<ClientTooltipComponent> components) Pre
(@NotNull ItemStack stack, PoseStack poseStack, int x, int y, int screenWidth, int screenHeight, @NotNull Font font, @NotNull List<ClientTooltipComponent> components) protected
RenderTooltipEvent
(@NotNull ItemStack itemStack, PoseStack poseStack, int x, int y, @NotNull Font font, @NotNull List<ClientTooltipComponent> components) -
Uses of Font in net.minecraftforge.client.extensions
-
Uses of Font in net.minecraftforge.client.extensions.common
Modifier and TypeMethodDescriptiondefault @Nullable Font
IClientItemExtensions.getFont
(ItemStack stack, IClientItemExtensions.FontContext context) Returns the font used to render data related to this item as specified in thecontext
. -
Uses of Font in net.minecraftforge.client.gui
Modifier and TypeMethodDescriptionprivate void
LoadingErrorScreen.drawMultiLineCenteredString
(PoseStack poseStack, Font fr, Component str, int x, int y) -
Uses of Font in net.minecraftforge.client.gui.overlay
-
Uses of Font in net.minecraftforge.debug.client
Modifier and TypeFieldDescription(package private) static Font
CustomTooltipTest.ClientModBusEventHandler.customFont
Modifier and TypeMethodDescriptionint
void
CustomTooltipTest.CustomClientTooltip.renderImage
(Font font, int x, int y, PoseStack poseStack, ItemRenderer itemRenderer_) -
Uses of Font in net.minecraftforge.debug.client.rendering