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 com.mojang.realmsclient.gui.screens
ModifierConstructorDescription(package private)
FrameButton
(Font p_335556_, Component p_89441_, ResourceLocation p_89442_, Button.OnPress p_89443_) -
Uses of Font in net.minecraft.client
-
Uses of Font in net.minecraft.client.gui
Modifier and TypeMethodDescriptionvoid
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_, String p_281896_, float p_283569_, float p_283418_, int p_281560_, boolean p_282130_) int
GuiGraphics.drawString
(Font p_282003_, String p_281403_, int p_282714_, int p_282041_, int p_281908_) int
GuiGraphics.drawString
(Font p_283343_, 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_) int
GuiGraphics.drawStringWithBackdrop
(Font p_348650_, Component p_348614_, int p_348465_, int p_348495_, int p_348581_, int p_348666_) 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_, 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_, 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
private final Font
Checkbox.Builder.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
LoadingDotsWidget.font
private final Font
MultiLineEditBox.font
private final Font
MultilineTextField.font
private final Font
PlainTextButton.font
Modifier and TypeMethodDescriptionstatic Checkbox.Builder
static MultiLineLabel
static MultiLineLabel
static MultiLineLabel
static MultiLineLabel
private int
Checkbox.getAdjustedHeight
(Font p_352942_) private int
Checkbox.getAdjustedWidth
(int p_352963_, Component p_352934_, Font p_352953_) static int
Checkbox.getBoxSize
(Font p_309147_) (package private) static int
Checkbox.getDefaultWidth
(Component p_352957_, Font p_352937_) 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_) 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_) static void
AbstractWidget.renderScrollingString
(GuiGraphics p_296355_, Font p_295317_, Component p_294875_, int p_294289_, int p_295475_, int p_294243_, int p_296428_, int p_294696_, int p_295687_) void
AbstractButton.renderString
(GuiGraphics p_283366_, Font p_283054_, int p_281656_) void
SpriteIconButton.CenteredIcon.renderString
(GuiGraphics p_294683_, Font p_295870_, int p_295770_) void
SpriteIconButton.TextAndIcon.renderString
(GuiGraphics p_296211_, Font p_295107_, int p_295081_) void
TabButton.renderString
(GuiGraphics p_282917_, Font p_275208_, int p_275293_) 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_) (package private)
(package private)
Checkbox
(int p_93826_, int p_93827_, int p_352958_, Component p_93830_, Font p_309061_, boolean p_93831_, Checkbox.OnValueChange p_309172_) 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_) FocusableTextWidget
(int p_295441_, Component p_296440_, Font p_296307_) FocusableTextWidget
(int p_331308_, Component p_330271_, Font p_330898_, boolean p_332016_, int p_331228_) FocusableTextWidget
(int p_295671_, Component p_295867_, Font p_294548_, int p_330770_) LoadingDotsWidget
(Font p_295952_, Component p_295297_) 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.components.debugchart
ModifierConstructorDescriptionprotected
AbstractDebugChart
(Font p_299029_, SampleStorage p_324391_) BandwidthDebugChart
(Font p_298747_, SampleStorage p_323505_) FpsDebugChart
(Font p_298374_, SampleStorage p_323606_) PingDebugChart
(Font p_298944_, SampleStorage p_323605_) TpsDebugChart
(Font p_299254_, SampleStorage p_324399_, Supplier<Float> p_309098_) -
Uses of Font in net.minecraft.client.gui.font
-
Uses of Font in net.minecraft.client.gui.layouts
Modifier and TypeMethodDescriptionvoid
HeaderAndFooterLayout.addTitleHeader
(Component p_330525_, Font p_330590_) static Layout
CommonLayouts.labeledElement
(Font p_300005_, LayoutElement p_299827_, Component p_299870_) static Layout
CommonLayouts.labeledElement
(Font p_300013_, LayoutElement p_299865_, Component p_300008_, Consumer<LayoutSettings> p_299888_) -
Uses of Font in net.minecraft.client.gui.screens
-
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
int
void
ClientActivePlayersTooltip.renderImage
(Font p_350808_, int p_350702_, int p_350999_, GuiGraphics p_350342_) 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 TypeFieldDescriptionprivate final 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.neoforged.neoforge.client
Modifier and TypeMethodDescriptionstatic Font
ClientHooks.getTooltipFont
(ItemStack stack, Font fallbackFont) Modifier and TypeMethodDescriptionstatic List
<ClientTooltipComponent> ClientHooks.gatherTooltipComponents
(ItemStack stack, List<? extends FormattedText> textElements, int mouseX, int screenWidth, int screenHeight, Font fallbackFont) static List
<ClientTooltipComponent> ClientHooks.gatherTooltipComponents
(ItemStack stack, List<? extends FormattedText> textElements, Optional<TooltipComponent> itemComponent, int mouseX, int screenWidth, int screenHeight, Font fallbackFont) static Font
ClientHooks.getTooltipFont
(ItemStack stack, Font fallbackFont) static RenderTooltipEvent.Color
ClientHooks.onRenderTooltipColor
(ItemStack stack, GuiGraphics graphics, int x, int y, Font font, List<ClientTooltipComponent> components) static RenderTooltipEvent.Pre
ClientHooks.onRenderTooltipPre
(ItemStack stack, GuiGraphics graphics, int x, int y, int screenWidth, int screenHeight, List<ClientTooltipComponent> components, Font fallbackFont, 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
ClientHooks.renderMainMenu
(TitleScreen gui, GuiGraphics guiGraphics, Font font, int width, int height, int alpha) private static Stream
<ClientTooltipComponent> ClientHooks.splitLine
(FormattedText text, Font font, int maxWidth) -
Uses of Font in net.neoforged.neoforge.client.event
Modifier and TypeMethodDescriptionRenderTooltipEvent.getFont()
Returns The font used to render the text.Modifier and TypeMethodDescriptionvoid
Sets the font to be used to render text.ModifierConstructorDescriptionColor
(ItemStack stack, GuiGraphics graphics, int x, int y, Font fr, int background, int borderStart, int borderEnd, List<ClientTooltipComponent> components) Pre
(ItemStack stack, GuiGraphics graphics, int x, int y, int screenWidth, int screenHeight, Font font, List<ClientTooltipComponent> components, ClientTooltipPositioner positioner) protected
RenderTooltipEvent
(ItemStack itemStack, GuiGraphics graphics, int x, int y, Font font, List<ClientTooltipComponent> components) -
Uses of Font in net.neoforged.neoforge.client.extensions
Modifier and TypeMethodDescriptiondefault int
IGuiGraphicsExtension.drawScrollingString
(Font font, Component text, int minX, int maxX, int y, int color) Draws a left-aligned string, with a scrolling effect if the string is too long. -
Uses of Font in net.neoforged.neoforge.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.neoforged.neoforge.client.gui
Modifier and TypeMethodDescriptionprivate void
LoadingErrorScreen.drawMultiLineCenteredString
(GuiGraphics guiGraphics, Font fr, Component str, int x, int y) -
Uses of Font in net.neoforged.neoforge.forge.snapshots
Modifier and TypeMethodDescriptionstatic void
ForgeSnapshotsModClient.renderMainMenuWarning
(String neoForgeVersion, GuiGraphics graphics, Font font, int width, int height, int alpha) -
Uses of Font in net.neoforged.neoforge.oldtest.client
Modifier and TypeMethodDescriptionint
void
CustomTooltipTest.CustomClientTooltip.renderImage
(Font font, int x, int y, GuiGraphics graphics) -
Uses of Font in net.neoforged.neoforge.oldtest.client.rendering
Modifier and TypeMethodDescriptionboolean
CustomItemDecorationsTest.StackSizeDurabilityBar.render
(GuiGraphics graphics, Font font, ItemStack stack, int xOffset, int yOffset) -
Uses of Font in net.neoforged.testframework.client
Modifier and TypeMethodDescriptionprivate TestsOverlay.XY
TestsOverlay.renderTest
(Font font, Test test, GuiGraphics stack, int maxWidth, int x, int y, int colour, List<Runnable> rendering)