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 textRenderer, List<MultilineText.Line> lines) static MultilineText
MultilineText.create
(TextRenderer renderer, StringVisitable text, int width) static MultilineText
MultilineText.create
(TextRenderer renderer, StringVisitable text, int width, int maxLines) static MultilineText
MultilineText.create
(TextRenderer renderer, Text[] texts) static MultilineText
MultilineText.createFromTexts
(TextRenderer renderer, List<Text> texts) -
Uses of TextRenderer in net.minecraft.client.gui
Modifier and TypeMethodDescriptionstatic void
DrawableHelper.drawCenteredText
(MatrixStack matrices, TextRenderer textRenderer, String text, int centerX, int y, int color) static void
DrawableHelper.drawCenteredText
(MatrixStack matrices, TextRenderer textRenderer, Text text, int centerX, int y, int color) static void
DrawableHelper.drawCenteredTextWithShadow
(MatrixStack matrices, TextRenderer textRenderer, OrderedText text, int centerX, int y, int color) static void
DrawableHelper.drawStringWithShadow
(MatrixStack matrices, TextRenderer textRenderer, String text, int x, int y, int color) static void
DrawableHelper.drawTextWithShadow
(MatrixStack matrices, TextRenderer textRenderer, Text text, int x, int y, int color) static void
DrawableHelper.drawWithShadow
(MatrixStack matrices, TextRenderer textRenderer, OrderedText text, int x, int y, int color) -
Uses of TextRenderer in net.minecraft.client.gui.hud
Modifier and TypeMethodDescriptionprivate void
InGameHud.drawTextBackground
(MatrixStack matrices, TextRenderer textRenderer, int yOffset, int width, int color) -
Uses of TextRenderer in net.minecraft.client.gui.screen
Modifier and TypeFieldDescription(package private) final TextRenderer
ChatInputSuggestor.textRenderer
protected TextRenderer
Screen.textRenderer
private final TextRenderer
TitleScreen.DeprecationNotice.textRenderer
The field for thetextRenderer
record component.Modifier and TypeMethodDescriptionTitleScreen.DeprecationNotice.textRenderer()
Returns the value of thetextRenderer
record component.ModifierConstructorDescriptionChatInputSuggestor
(MinecraftClient client, Screen owner, TextFieldWidget textField, TextRenderer textRenderer, boolean slashOptional, boolean suggestingWhenEmpty, int inWindowIndexOffset, int maxSuggestionSize, boolean chatScreenSized, int color) (package private)
DeprecationNotice
(TextRenderer textRenderer, MultilineText multilineText, int int2, int int3) -
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.world
Modifier and TypeMethodDescriptionvoid
MoreOptionsDialog.init
(CreateWorldScreen parent, MinecraftClient client, TextRenderer textRenderer) -
Uses of TextRenderer in net.minecraft.client.gui.tooltip
Modifier and TypeMethodDescriptionvoid
BundleTooltipComponent.drawItems
(TextRenderer textRenderer, int x, int y, MatrixStack matrices, ItemRenderer itemRenderer, int z) default void
TooltipComponent.drawItems
(TextRenderer textRenderer, int x, int y, MatrixStack matrices, ItemRenderer itemRenderer, int z) private void
BundleTooltipComponent.drawSlot
(int x, int y, int index, boolean shouldBlock, TextRenderer textRenderer, MatrixStack matrices, ItemRenderer itemRenderer, int z) 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) int
BundleTooltipComponent.getWidth
(TextRenderer textRenderer) int
OrderedTextTooltipComponent.getWidth
(TextRenderer textRenderer) int
TooltipComponent.getWidth
(TextRenderer textRenderer) -
Uses of TextRenderer in net.minecraft.client.gui.widget
Modifier and TypeFieldDescriptionprivate final TextRenderer
EditBoxWidget.textRenderer
private final TextRenderer
PressableTextWidget.textRenderer
private final TextRenderer
TextFieldWidget.textRenderer
ModifierConstructorDescriptionEditBoxWidget
(TextRenderer textRenderer, int x, int y, int width, int height, Text placeholder, Text message) PressableTextWidget
(int x, int y, int width, int height, Text text, ButtonWidget.PressAction onPress, 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) -
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
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, BlockRenderManager blockRenderManager, HeldItemRenderer heldItemRenderer, ResourceManager resourceManager, EntityModelLoader modelLoader, TextRenderer textRenderer) EntityRenderDispatcher
(MinecraftClient client, TextureManager textureManager, ItemRenderer itemRenderer, BlockRenderManager blockRenderManager, TextRenderer textRenderer, GameOptions gameOptions, EntityModelLoader modelLoader) -
Uses of TextRenderer in net.minecraft.client.render.item
Modifier and TypeMethodDescriptionvoid
ItemRenderer.renderGuiItemOverlay
(TextRenderer renderer, ItemStack stack, int x, int y) Renders the overlay for items in GUIs, including the damage bar and the item count.void
ItemRenderer.renderGuiItemOverlay
(TextRenderer renderer, ItemStack stack, int x, int y, @Nullable String countLabel) Renders the overlay for items in GUIs, including the damage bar and the item count. -
Uses of TextRenderer in net.minecraft.client.util
Modifier and TypeMethodDescriptionstatic List<OrderedText>
ChatMessages.breakRenderedChatMessageLines
(StringVisitable message, int width, TextRenderer textRenderer)