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).
-
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 TypeFieldDescription(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_) static List<FormattedCharSequence>
ComponentRenderUtils.wrapComponents
(FormattedText p_94006_, int p_94007_, Font p_94008_) ModifierConstructorDescriptionCommandSuggestions
(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_) PlainTextButton
(int p_211755_, int p_211756_, int p_211757_, int p_211758_, Component p_211759_, Button.OnPress p_211760_, Font p_211761_) -
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_, int p_194047_) default void
ClientTooltipComponent.renderImage
(Font p_194048_, int p_194049_, int p_194050_, PoseStack p_194051_, ItemRenderer p_194052_, int p_194053_) private void
ClientBundleTooltip.renderSlot
(int p_194027_, int p_194028_, int p_194029_, boolean p_194030_, Font p_194031_, PoseStack p_194032_, ItemRenderer p_194033_, int p_194034_) void
ClientTextTooltip.renderText
(Font p_169943_, int p_169944_, int p_169945_, Matrix4f p_169946_, MultiBufferSource.BufferSource p_169947_) default void
ClientTooltipComponent.renderText
(Font p_169953_, int p_169954_, int p_169955_, Matrix4f p_169956_, MultiBufferSource.BufferSource p_169957_) -
Uses of Font in net.minecraft.client.gui.screens.worldselection
Modifier and TypeMethodDescriptionvoid
WorldGenSettingsComponent.init
(CreateWorldScreen p_101430_, Minecraft p_101431_, Font p_101432_) -
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
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
(Font p_115170_, ItemStack p_115171_, int p_115172_, int p_115173_) void
ItemRenderer.renderGuiItemDecorations
(Font p_115175_, ItemStack p_115176_, int p_115177_, int p_115178_, String p_115179_) 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) boolean
Is called after ItemRenderer.renderGuiItemDecorations(Font, ItemStack, int, int, String) is done rendering.void
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.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
private Font
CustomTooltipTest.TooltipTestScreen.testFont
Modifier and TypeMethodDescriptionint
void
CustomTooltipTest.CustomClientTooltip.renderImage
(Font font, int x, int y, PoseStack poseStack, ItemRenderer itemRenderer_, int zIndex) -
Uses of Font in net.minecraftforge.debug.client.rendering