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
(GuiGraphics p_282548_, Font p_93041_, int p_93042_, int p_93043_, int p_93044_) void
GuiGraphics.drawCenteredString
(Font p_282122_, String p_282898_, int p_281490_, int p_282853_, int p_281258_) void
GuiGraphics.drawCenteredString
(Font p_282901_, Component p_282456_, int p_283083_, int p_282276_, int p_281457_) void
GuiGraphics.drawCenteredString
(Font p_282592_, FormattedCharSequence p_281854_, int p_281573_, int p_283511_, int p_282577_) int
GuiGraphics.drawString
(Font p_283343_, @Nullable String p_281896_, float p_283569_, float p_283418_, int p_281560_, boolean p_282130_) int
GuiGraphics.drawString
(Font p_282003_, @Nullable String p_281403_, int p_282714_, int p_282041_, int p_281908_) int
GuiGraphics.drawString
(Font p_283343_, @Nullable String p_281896_, int p_283569_, int p_283418_, int p_281560_, boolean p_282130_) int
GuiGraphics.drawString
(Font p_281653_, Component p_283140_, int p_283102_, int p_282347_, int p_281429_) int
GuiGraphics.drawString
(Font p_281547_, Component p_282131_, int p_282857_, int p_281250_, int p_282195_, boolean p_282791_) int
GuiGraphics.drawString
(Font p_282636_, FormattedCharSequence p_281596_, float p_281586_, float p_282816_, int p_281743_, boolean p_282394_) int
GuiGraphics.drawString
(Font p_283019_, FormattedCharSequence p_283376_, int p_283379_, int p_283346_, int p_282119_) int
GuiGraphics.drawString
(Font p_282636_, FormattedCharSequence p_281596_, int p_281586_, int p_282816_, int p_281743_, boolean p_282394_) void
GuiGraphics.drawWordWrap
(Font p_281494_, FormattedText p_283463_, int p_282183_, int p_283250_, int p_282564_, int p_282629_) void
GuiGraphics.renderComponentHoverEffect
(Font p_282584_, @Nullable Style p_282156_, int p_283623_, int p_282114_) void
GuiGraphics.renderComponentTooltip
(Font font, List<? extends FormattedText> tooltips, int mouseX, int mouseY, ItemStack stack) void
GuiGraphics.renderComponentTooltip
(Font p_282739_, List<Component> p_281832_, int p_282191_, int p_282446_) void
GuiGraphics.renderItemDecorations
(Font p_281721_, ItemStack p_281514_, int p_282056_, int p_282683_) void
GuiGraphics.renderItemDecorations
(Font p_282005_, ItemStack p_283349_, int p_282641_, int p_282146_, @Nullable String p_282803_) void
GuiGraphics.renderTooltip
(Font p_282192_, List<? extends FormattedCharSequence> p_282297_, int p_281680_, int p_283325_) void
GuiGraphics.renderTooltip
(Font p_283128_, List<Component> p_282716_, Optional<TooltipComponent> p_281682_, int p_283678_, int p_281696_) void
GuiGraphics.renderTooltip
(Font font, List<Component> textComponents, Optional<TooltipComponent> tooltipComponent, ItemStack stack, int mouseX, int mouseY) void
GuiGraphics.renderTooltip
(Font p_281627_, List<FormattedCharSequence> p_283313_, ClientTooltipPositioner p_283571_, int p_282367_, int p_282806_) void
GuiGraphics.renderTooltip
(Font p_282269_, Component p_282572_, int p_282044_, int p_282545_) void
GuiGraphics.renderTooltip
(Font p_282308_, ItemStack p_282781_, int p_282687_, int p_282292_) private void
GuiGraphics.renderTooltipInternal
(Font p_282675_, List<ClientTooltipComponent> p_282615_, int p_283230_, int p_283417_, ClientTooltipPositioner p_282442_) -
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
FittingMultiLineTextWidget.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_) void
SplashRenderer.render
(GuiGraphics p_282218_, int p_281824_, Font p_281962_, int p_282586_) private void
TabButton.renderFocusUnderline
(GuiGraphics p_282383_, Font p_275475_, int p_275367_) protected void
AbstractWidget.renderScrollingString
(GuiGraphics p_281857_, Font p_282790_, int p_282664_, int p_282944_) protected static void
AbstractWidget.renderScrollingString
(GuiGraphics p_281620_, Font p_282651_, Component p_281467_, int p_283621_, int p_282084_, int p_283398_, int p_281938_, int p_283471_) void
AbstractButton.renderString
(GuiGraphics p_283366_, Font p_283054_, int p_281656_) void
TabButton.renderString
(GuiGraphics p_282917_, Font p_275208_, int p_275293_) void
TextAndImageButton.renderString
(GuiGraphics p_281792_, Font p_283239_, int p_283135_) 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_) FittingMultiLineTextWidget
(int p_289785_, int p_289777_, int p_289760_, int p_289801_, Component p_289788_, Font p_289781_) 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.Modifier and TypeMethodDescriptionTitleScreen.WarningLabel.font()
Returns the value of thefont
record component.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_, GuiGraphics p_282522_) default void
ClientTooltipComponent.renderImage
(Font p_194048_, int p_194049_, int p_194050_, GuiGraphics p_283459_) private void
ClientBundleTooltip.renderSlot
(int p_283180_, int p_282972_, int p_282547_, boolean p_283053_, GuiGraphics p_283625_, Font p_281863_) 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()
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
(@NotNull ItemStack stack, Font fallbackFont) Modifier and TypeMethodDescriptionstatic List<ClientTooltipComponent>
ForgeHooksClient.gatherTooltipComponents
(ItemStack stack, List<? extends FormattedText> textElements, int mouseX, int screenWidth, int screenHeight, Font fallbackFont) static List<ClientTooltipComponent>
ForgeHooksClient.gatherTooltipComponents
(ItemStack stack, List<? extends FormattedText> textElements, Optional<TooltipComponent> itemComponent, int mouseX, int screenWidth, int screenHeight, Font fallbackFont) static Font
ForgeHooksClient.getTooltipFont
(@NotNull ItemStack stack, Font fallbackFont) static RenderTooltipEvent.Color
ForgeHooksClient.onRenderTooltipColor
(@NotNull ItemStack stack, GuiGraphics graphics, int x, int y, @NotNull Font font, @NotNull List<ClientTooltipComponent> components) static RenderTooltipEvent.Pre
ForgeHooksClient.onRenderTooltipPre
(@NotNull ItemStack stack, GuiGraphics graphics, int x, int y, int screenWidth, int screenHeight, @NotNull List<ClientTooltipComponent> components, @NotNull Font fallbackFont, @NotNull ClientTooltipPositioner positioner) boolean
IItemDecorator.render
(GuiGraphics guiGraphics, Font font, ItemStack stack, int xOffset, int yOffset) Is called after GuiGraphics.renderItemDecorations(Font, ItemStack, int, int, String) is done rendering.void
ItemDecoratorHandler.render
(GuiGraphics guiGraphics, Font font, ItemStack stack, int xOffset, int yOffset) static void
ForgeHooksClient.renderMainMenu
(TitleScreen gui, GuiGraphics guiGraphics, Font font, int width, int height, int alpha) private static Stream<ClientTooltipComponent>
ForgeHooksClient.splitLine
(FormattedText text, Font font, int maxWidth) -
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, GuiGraphics graphics, int x, int y, @NotNull Font fr, int background, int borderStart, int borderEnd, @NotNull List<ClientTooltipComponent> components) Pre
(@NotNull ItemStack stack, GuiGraphics graphics, int x, int y, int screenWidth, int screenHeight, @NotNull Font font, @NotNull List<ClientTooltipComponent> components, @NotNull ClientTooltipPositioner positioner) protected
RenderTooltipEvent
(@NotNull ItemStack itemStack, GuiGraphics graphics, 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
(GuiGraphics guiGraphics, 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 TypeMethodDescriptionint
void
CustomTooltipTest.CustomClientTooltip.renderImage
(Font font, int x, int y, GuiGraphics graphics) -
Uses of Font in net.minecraftforge.debug.client.rendering
Modifier and TypeMethodDescriptionboolean
CustomItemDecorationsTest.StackSizeDurabilityBar.render
(GuiGraphics graphics, Font font, ItemStack stack, int xOffset, int yOffset) -
Uses of Font in net.minecraftforge.forge.snapshots
Modifier and TypeMethodDescriptionstatic void
ForgeSnapshotsModClient.renderMainMenuWarning
(VersionChecker.Status status, TitleScreen gui, GuiGraphics graphics, Font font, int width, int height, int alpha)