Uses of Class
net.minecraft.client.font.TextRenderer
Package
Description
-
Uses of TextRenderer in net.minecraft.client
Modifier and TypeFieldDescriptionfinal TextRenderer
MinecraftClient.advanceValidatingTextRenderer
final TextRenderer
MinecraftClient.textRenderer
-
Uses of TextRenderer in net.minecraft.client.font
Modifier and TypeMethodDescriptionFontManager.createAdvanceValidatingTextRenderer()
FontManager.createTextRenderer()
Modifier and TypeMethodDescriptionstatic MultilineText
MultilineText.create
(TextRenderer renderer, int maxWidth, int maxLines, Text[] texts) static MultilineText
MultilineText.create
(TextRenderer renderer, int maxWidth, Text[] texts) static MultilineText
MultilineText.create
(TextRenderer renderer, Text[] texts) static MultilineText
MultilineText.create
(TextRenderer renderer, Text text, int maxWidth) -
Uses of TextRenderer in net.minecraft.client.gui
Modifier and TypeMethodDescriptionvoid
DrawContext.drawCenteredTextWithShadow
(TextRenderer textRenderer, String text, int centerX, int y, int color) void
DrawContext.drawCenteredTextWithShadow
(TextRenderer textRenderer, OrderedText text, int centerX, int y, int color) void
DrawContext.drawCenteredTextWithShadow
(TextRenderer textRenderer, Text text, int centerX, int y, int color) void
DrawContext.drawHoverEvent
(TextRenderer textRenderer, @Nullable Style style, int x, int y) void
DrawContext.drawItemTooltip
(TextRenderer textRenderer, ItemStack stack, int x, int y) void
DrawContext.drawOrderedTooltip
(TextRenderer textRenderer, List<? extends OrderedText> text, int x, int y) void
DrawContext.drawOrderedTooltip
(TextRenderer textRenderer, List<? extends OrderedText> text, int x, int y, @Nullable Identifier texture) private void
DrawContext.drawStackCount
(TextRenderer textRenderer, ItemStack stack, int x, int y, @Nullable String stackCountText) void
DrawContext.drawStackOverlay
(TextRenderer textRenderer, ItemStack stack, int x, int y) void
DrawContext.drawStackOverlay
(TextRenderer textRenderer, ItemStack stack, int x, int y, @Nullable String stackCountText) int
DrawContext.drawText
(TextRenderer textRenderer, @Nullable String text, int x, int y, int color, boolean shadow) int
DrawContext.drawText
(TextRenderer textRenderer, OrderedText text, int x, int y, int color, boolean shadow) int
DrawContext.drawText
(TextRenderer textRenderer, Text text, int x, int y, int color, boolean shadow) int
DrawContext.drawTextWithBackground
(TextRenderer textRenderer, Text text, int x, int y, int width, int color) int
DrawContext.drawTextWithShadow
(TextRenderer textRenderer, @Nullable String text, int x, int y, int color) int
DrawContext.drawTextWithShadow
(TextRenderer textRenderer, OrderedText text, int x, int y, int color) int
DrawContext.drawTextWithShadow
(TextRenderer textRenderer, Text text, int x, int y, int color) void
DrawContext.drawTextWrapped
(TextRenderer textRenderer, StringVisitable text, int x, int y, int width, int color) private void
DrawContext.drawTooltip
(TextRenderer textRenderer, List<TooltipComponent> components, int x, int y, TooltipPositioner positioner, @Nullable Identifier texture) void
DrawContext.drawTooltip
(TextRenderer textRenderer, List<OrderedText> text, TooltipPositioner positioner, int x, int y) void
DrawContext.drawTooltip
(TextRenderer textRenderer, List<Text> text, int x, int y) void
DrawContext.drawTooltip
(TextRenderer textRenderer, List<Text> text, int x, int y, @Nullable Identifier texture) void
DrawContext.drawTooltip
(TextRenderer textRenderer, List<Text> text, Optional<TooltipData> data, int x, int y) void
DrawContext.drawTooltip
(TextRenderer textRenderer, List<Text> text, Optional<TooltipData> data, int x, int y, @Nullable Identifier texture) void
DrawContext.drawTooltip
(TextRenderer textRenderer, Text text, int x, int y) void
DrawContext.drawTooltip
(TextRenderer textRenderer, Text text, int x, int y, @Nullable Identifier texture) -
Uses of TextRenderer in net.minecraft.client.gui.hud
-
Uses of TextRenderer in net.minecraft.client.gui.hud.debug
Modifier and TypeFieldDescriptionprotected final TextRenderer
DebugChart.textRenderer
private final TextRenderer
PieChart.textRenderer
ModifierConstructorDescriptionprotected
DebugChart
(TextRenderer textRenderer, MultiValueDebugSampleLog log) PacketSizeChart
(TextRenderer textRenderer, MultiValueDebugSampleLog log) PieChart
(TextRenderer textRenderer) PingChart
(TextRenderer textRenderer, MultiValueDebugSampleLog log) RenderingChart
(TextRenderer textRenderer, MultiValueDebugSampleLog log) TickChart
(TextRenderer textRenderer, MultiValueDebugSampleLog log, Supplier<Float> millisPerTickSupplier) -
Uses of TextRenderer in net.minecraft.client.gui.screen
Modifier and TypeFieldDescription(package private) final TextRenderer
ChatInputSuggestor.textRenderer
protected TextRenderer
Screen.textRenderer
Modifier and TypeMethodDescriptionvoid
SplashTextRenderer.render
(DrawContext context, int screenWidth, TextRenderer textRenderer, int alpha) ModifierConstructorDescriptionChatInputSuggestor
(MinecraftClient client, Screen owner, TextFieldWidget textField, TextRenderer textRenderer, boolean slashOptional, boolean suggestingWhenEmpty, int inWindowIndexOffset, int maxSuggestionSize, boolean chatScreenSized, int color) -
Uses of TextRenderer in net.minecraft.client.gui.screen.ingame
Modifier and TypeMethodDescriptionEnchantingPhrases.generatePhrase
(TextRenderer textRenderer, int width) int
BookEditScreen.PageContent.getCursorPosition
(TextRenderer renderer, BookEditScreen.Position position) -
Uses of TextRenderer in net.minecraft.client.gui.screen.option
Modifier and TypeMethodDescriptionvoid
TelemetryEventWidget.ContentsBuilder.appendText
(TextRenderer textRenderer, Text text) void
TelemetryEventWidget.ContentsBuilder.appendTitle
(TextRenderer textRenderer, Text title) void
TelemetryEventWidget.ContentsBuilder.appendTitle
(TextRenderer textRenderer, Text title, int marginBottom) ModifierConstructorDescriptionTelemetryEventWidget
(int x, int y, int width, int height, TextRenderer textRenderer) -
Uses of TextRenderer in net.minecraft.client.gui.tooltip
Modifier and TypeMethodDescriptionprivate static void
BundleTooltipComponent.drawEmptyDescription
(int x, int y, TextRenderer textRenderer, DrawContext drawContext) private void
BundleTooltipComponent.drawEmptyTooltip
(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context) private static void
BundleTooltipComponent.drawExtraItemsCount
(int x, int y, int numExtra, TextRenderer textRenderer, DrawContext drawContext) private void
BundleTooltipComponent.drawItem
(int index, int x, int y, List<ItemStack> stacks, int seed, TextRenderer textRenderer, DrawContext drawContext) void
BundleTooltipComponent.drawItems
(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context) void
ProfilesTooltipComponent.drawItems
(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context) default void
TooltipComponent.drawItems
(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context) private void
BundleTooltipComponent.drawNonEmptyTooltip
(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context) private void
BundleTooltipComponent.drawProgressBar
(int x, int y, TextRenderer textRenderer, DrawContext drawContext) private void
BundleTooltipComponent.drawSelectedItemTooltip
(TextRenderer textRenderer, DrawContext drawContext, int x, int y, int width) void
OrderedTextTooltipComponent.drawText
(TextRenderer textRenderer, int x, int y, Matrix4f matrix, VertexConsumerProvider.Immediate vertexConsumers) default void
TooltipComponent.drawText
(TextRenderer textRenderer, int x, int y, Matrix4f matrix, VertexConsumerProvider.Immediate vertexConsumers) private static int
BundleTooltipComponent.getDescriptionHeight
(TextRenderer textRenderer) int
BundleTooltipComponent.getHeight
(TextRenderer textRenderer) int
OrderedTextTooltipComponent.getHeight
(TextRenderer textRenderer) int
ProfilesTooltipComponent.getHeight
(TextRenderer textRenderer) int
TooltipComponent.getHeight
(TextRenderer textRenderer) private static int
BundleTooltipComponent.getHeightOfEmpty
(TextRenderer textRenderer) int
BundleTooltipComponent.getWidth
(TextRenderer textRenderer) int
OrderedTextTooltipComponent.getWidth
(TextRenderer textRenderer) int
ProfilesTooltipComponent.getWidth
(TextRenderer textRenderer) int
TooltipComponent.getWidth
(TextRenderer textRenderer) -
Uses of TextRenderer in net.minecraft.client.gui.widget
Modifier and TypeFieldDescriptionprivate final TextRenderer
AbstractTextWidget.textRenderer
private final TextRenderer
CheckboxWidget.Builder.textRenderer
private final TextRenderer
EditBoxWidget.textRenderer
private final TextRenderer
LoadingWidget.textRenderer
private final TextRenderer
PressableTextWidget.textRenderer
private final TextRenderer
ScrollableTextWidget.textRenderer
private final TextRenderer
TextFieldWidget.textRenderer
Modifier and TypeMethodDescriptionprotected final TextRenderer
AbstractTextWidget.getTextRenderer()
Modifier and TypeMethodDescriptionvoid
ThreePartsLayoutWidget.addHeader
(Text text, TextRenderer textRenderer) static CheckboxWidget.Builder
CheckboxWidget.builder
(Text text, TextRenderer textRenderer) private int
CheckboxWidget.calculateHeight
(TextRenderer textRenderer) private int
CheckboxWidget.calculateWidth
(int max, Text text, TextRenderer textRenderer) (package private) static int
CheckboxWidget.calculateWidth
(Text text, TextRenderer textRenderer) static LayoutWidget
LayoutWidgets.createLabeledWidget
(TextRenderer textRenderer, Widget widget, Text label) static LayoutWidget
LayoutWidgets.createLabeledWidget
(TextRenderer textRenderer, Widget widget, Text label, Consumer<Positioner> callback) private void
TabButtonWidget.drawCurrentTabLine
(DrawContext context, TextRenderer textRenderer, int color) void
PressableWidget.drawMessage
(DrawContext context, TextRenderer textRenderer, int color) void
TabButtonWidget.drawMessage
(DrawContext context, TextRenderer textRenderer, int color) void
TextIconButtonWidget.IconOnly.drawMessage
(DrawContext context, TextRenderer textRenderer, int color) void
TextIconButtonWidget.WithText.drawMessage
(DrawContext context, TextRenderer textRenderer, int color) protected void
ClickableWidget.drawScrollableText
(DrawContext context, TextRenderer textRenderer, int xMargin, int color) protected static void
ClickableWidget.drawScrollableText
(DrawContext context, TextRenderer textRenderer, Text text, int startX, int startY, int endX, int endY, int color) protected static void
ClickableWidget.drawScrollableText
(DrawContext context, TextRenderer textRenderer, Text text, int centerX, int startX, int startY, int endX, int endY, int color) static int
CheckboxWidget.getCheckboxSize
(TextRenderer textRenderer) ModifierConstructorDescriptionAbstractTextWidget
(int x, int y, int width, int height, Text message, TextRenderer textRenderer) (package private)
Builder
(Text message, TextRenderer textRenderer) (package private)
CheckboxWidget
(int x, int y, int maxWidth, Text message, TextRenderer textRenderer, boolean checked, CheckboxWidget.Callback callback) EditBoxWidget
(TextRenderer textRenderer, int x, int y, int width, int height, Text placeholder, Text message) LoadingWidget
(TextRenderer textRenderer, Text message) MultilineTextWidget
(int x, int y, Text message, TextRenderer textRenderer) MultilineTextWidget
(Text message, TextRenderer textRenderer) NarratedMultilineTextWidget
(int maxWidth, Text message, TextRenderer textRenderer) NarratedMultilineTextWidget
(int maxWidth, Text message, TextRenderer textRenderer, boolean alwaysShowBorders, int margin) NarratedMultilineTextWidget
(int maxWidth, Text message, TextRenderer textRenderer, int margin) PressableTextWidget
(int x, int y, int width, int height, Text text, ButtonWidget.PressAction onPress, TextRenderer textRenderer) ScrollableTextWidget
(int x, int y, int width, int height, Text message, TextRenderer textRenderer) TextFieldWidget
(TextRenderer textRenderer, int x, int y, int width, int height, @Nullable TextFieldWidget copyFrom, Text text) TextFieldWidget
(TextRenderer textRenderer, int x, int y, int width, int height, Text text) TextFieldWidget
(TextRenderer textRenderer, int width, int height, Text text) TextWidget
(int x, int y, int width, int height, Text message, TextRenderer textRenderer) TextWidget
(int width, int height, Text message, TextRenderer textRenderer) TextWidget
(Text message, TextRenderer textRenderer) -
Uses of TextRenderer in net.minecraft.client.realms.gui.screen
ModifierConstructorDescription(package private)
FrameButton
(TextRenderer textRenderer, Text message, Identifier image, ButtonWidget.PressAction onPress) -
Uses of TextRenderer in net.minecraft.client.render.block.entity
Modifier and TypeFieldDescriptionprivate final TextRenderer
BlockEntityRenderDispatcher.textRenderer
private final TextRenderer
BlockEntityRendererFactory.Context.textRenderer
private final TextRenderer
SignBlockEntityRenderer.textRenderer
ModifierConstructorDescriptionBlockEntityRenderDispatcher
(TextRenderer textRenderer, EntityModelLoader entityModelLoader, Supplier<BlockRenderManager> blockRenderManager, Supplier<ItemRenderer> itemRenderer, Supplier<EntityRenderDispatcher> entityRenderDispatcher) Context
(BlockEntityRenderDispatcher renderDispatcher, BlockRenderManager renderManager, ItemRenderer itemRenderer, EntityRenderDispatcher entityRenderDispatcher, EntityModelLoader layerRenderDispatcher, TextRenderer textRenderer) -
Uses of TextRenderer in net.minecraft.client.render.entity
Modifier and TypeFieldDescriptionprivate final TextRenderer
DisplayEntityRenderer.TextDisplayEntityRenderer.displayTextRenderer
private final TextRenderer
EntityRenderDispatcher.textRenderer
private final TextRenderer
EntityRenderer.textRenderer
private final TextRenderer
EntityRendererFactory.Context.textRenderer
Modifier and TypeMethodDescriptionEntityRenderer.getTextRenderer()
EntityRendererFactory.Context.getTextRenderer()
ModifierConstructorDescriptionContext
(EntityRenderDispatcher renderDispatcher, ItemRenderer itemRenderer, MapRenderer mapRenderer, BlockRenderManager blockRenderManager, ResourceManager resourceManager, EntityModelLoader modelLoader, EquipmentModelLoader equipmentModelLoader, TextRenderer textRenderer) EntityRenderDispatcher
(MinecraftClient client, TextureManager textureManager, ItemRenderer itemRenderer, MapRenderer mapRenderer, BlockRenderManager blockRenderManager, TextRenderer textRenderer, GameOptions gameOptions, EntityModelLoader modelLoader, EquipmentModelLoader equipmentModelLoader) -
Uses of TextRenderer in net.minecraft.client.toast
Modifier and TypeMethodDescriptionvoid
AdvancementToast.draw
(DrawContext context, TextRenderer textRenderer, long startTime) void
RecipeToast.draw
(DrawContext context, TextRenderer textRenderer, long startTime) void
SystemToast.draw
(DrawContext context, TextRenderer textRenderer, long startTime) void
Toast.draw
(DrawContext context, TextRenderer textRenderer, long startTime) void
TutorialToast.draw
(DrawContext context, TextRenderer textRenderer, long startTime) -
Uses of TextRenderer in net.minecraft.client.util
Modifier and TypeMethodDescriptionstatic List
<OrderedText> ChatMessages.breakRenderedChatMessageLines
(StringVisitable message, int width, TextRenderer textRenderer)