Package net.minecraft.client.gui.widget
Class MultilineTextWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.MultilineTextWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Selectable
- Mappings:
Namespace Name official elr
intermediary net/minecraft/class_7940
named net/minecraft/client/gui/widget/MultilineTextWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final int
private final MultilineText
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, WIDGETS_TEXTURE, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ModifierConstructorDescriptionprivate
MultilineTextWidget
(MultilineText multilineText, TextRenderer textRenderer, Text text, boolean centered) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
static MultilineTextWidget
createCentered
(int width, TextRenderer textRenderer, Text text) static MultilineTextWidget
createNonCentered
(int width, TextRenderer textRenderer, Text text) void
renderButton
(MatrixStack matrices, int mouseX, int mouseY, float delta) Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getTooltipPositioner, getType, getWidth, getX, getY, getYImage, isFocused, isHovered, isMouseOver, isNarratable, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBackground, setAlpha, setFocused, setMessage, setPos, setTooltip, setTooltipDelay, setWidth, setX, setY
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
charTyped, keyPressed, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
text
- Mappings:
Namespace Name Mixin selector official a
Lelr;a:Lelq;
intermediary field_41341
Lnet/minecraft/class_7940;field_41341:Lnet/minecraft/class_5489;
named text
Lnet/minecraft/client/gui/widget/MultilineTextWidget;text:Lnet/minecraft/client/font/MultilineText;
-
fontHeight
private final int fontHeight- Mappings:
Namespace Name Mixin selector official b
Lelr;b:I
intermediary field_41342
Lnet/minecraft/class_7940;field_41342:I
named fontHeight
Lnet/minecraft/client/gui/widget/MultilineTextWidget;fontHeight:I
-
centered
private final boolean centered- Mappings:
Namespace Name Mixin selector official c
Lelr;c:Z
intermediary field_41343
Lnet/minecraft/class_7940;field_41343:Z
named centered
Lnet/minecraft/client/gui/widget/MultilineTextWidget;centered:Z
-
-
Constructor Details
-
MultilineTextWidget
private MultilineTextWidget(MultilineText multilineText, TextRenderer textRenderer, Text text, boolean centered) - Mappings:
Namespace Name Mixin selector official <init>
Lelr;<init>(Lelq;Lekm;Lss;Z)V
intermediary <init>
Lnet/minecraft/class_7940;<init>(Lnet/minecraft/class_5489;Lnet/minecraft/class_327;Lnet/minecraft/class_2561;Z)V
named <init>
Lnet/minecraft/client/gui/widget/MultilineTextWidget;<init>(Lnet/minecraft/client/font/MultilineText;Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/Text;Z)V
-
-
Method Details
-
createCentered
- Mappings:
Namespace Name Mixin selector official a
Lelr;a(ILekm;Lss;)Lelr;
intermediary method_47617
Lnet/minecraft/class_7940;method_47617(ILnet/minecraft/class_327;Lnet/minecraft/class_2561;)Lnet/minecraft/class_7940;
named createCentered
Lnet/minecraft/client/gui/widget/MultilineTextWidget;createCentered(ILnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/Text;)Lnet/minecraft/client/gui/widget/MultilineTextWidget;
-
createNonCentered
public static MultilineTextWidget createNonCentered(int width, TextRenderer textRenderer, Text text) - Mappings:
Namespace Name Mixin selector official b
Lelr;b(ILekm;Lss;)Lelr;
intermediary method_47618
Lnet/minecraft/class_7940;method_47618(ILnet/minecraft/class_327;Lnet/minecraft/class_2561;)Lnet/minecraft/class_7940;
named createNonCentered
Lnet/minecraft/client/gui/widget/MultilineTextWidget;createNonCentered(ILnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/Text;)Lnet/minecraft/client/gui/widget/MultilineTextWidget;
-
appendClickableNarrations
- Specified by:
appendClickableNarrations
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official a
Lekw;a(Lenk;)V
intermediary method_47399
Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
named appendClickableNarrations
Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
-
renderButton
- Overrides:
renderButton
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official b
Lekw;b(Leed;IIF)V
intermediary method_25359
Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-