Package net.minecraft.client.gui.widget
Class MultilineTextWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.AbstractTextWidget
net.minecraft.client.gui.widget.MultilineTextWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Navigable
,Selectable
,Widget
- Direct Known Subclasses:
NarratedMultilineTextWidget
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/MultilineTextWidget
intermediary net/minecraft/class_7940
official fia
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CachedMapper
<MultilineTextWidget.CacheKey, MultilineText> private boolean
private OptionalInt
private OptionalInt
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionMultilineTextWidget
(int x, int y, Text message, TextRenderer textRenderer) MultilineTextWidget
(Text message, TextRenderer textRenderer) -
Method Summary
Modifier and TypeMethodDescriptionprivate MultilineTextWidget.CacheKey
int
int
getWidth()
void
renderWidget
(DrawContext context, int mouseX, int mouseY, float delta) setCentered
(boolean centered) setMaxRows
(int maxRows) setMaxWidth
(int maxWidth) setTextColor
(int int2) Methods inherited from class net.minecraft.client.gui.widget.AbstractTextWidget
appendClickableNarrations, getTextColor, getTextRenderer
Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getTooltip, getType, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onRelease, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setY
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, getFocusedPath, keyPressed, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
maxWidth
- Mappings:
Namespace Name Mixin selector named maxWidth
Lnet/minecraft/client/gui/widget/MultilineTextWidget;maxWidth:Ljava/util/OptionalInt;
intermediary field_42486
Lnet/minecraft/class_7940;field_42486:Ljava/util/OptionalInt;
official a
Lfia;a:Ljava/util/OptionalInt;
-
maxRows
- Mappings:
Namespace Name Mixin selector named maxRows
Lnet/minecraft/client/gui/widget/MultilineTextWidget;maxRows:Ljava/util/OptionalInt;
intermediary field_42487
Lnet/minecraft/class_7940;field_42487:Ljava/util/OptionalInt;
official b
Lfia;b:Ljava/util/OptionalInt;
-
cacheKeyToText
- Mappings:
Namespace Name Mixin selector named cacheKeyToText
Lnet/minecraft/client/gui/widget/MultilineTextWidget;cacheKeyToText:Lnet/minecraft/util/CachedMapper;
intermediary field_42488
Lnet/minecraft/class_7940;field_42488:Lnet/minecraft/class_8105;
official c
Lfia;c:Lazp;
-
centered
private boolean centered- Mappings:
Namespace Name Mixin selector named centered
Lnet/minecraft/client/gui/widget/MultilineTextWidget;centered:Z
intermediary field_41343
Lnet/minecraft/class_7940;field_41343:Z
official d
Lfia;d:Z
-
-
Constructor Details
-
MultilineTextWidget
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/widget/MultilineTextWidget;<init>(Lnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)V
intermediary <init>
Lnet/minecraft/class_7940;<init>(Lnet/minecraft/class_2561;Lnet/minecraft/class_327;)V
official <init>
Lfia;<init>(Lxp;Lfgr;)V
-
MultilineTextWidget
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/widget/MultilineTextWidget;<init>(IILnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)V
intermediary <init>
Lnet/minecraft/class_7940;<init>(IILnet/minecraft/class_2561;Lnet/minecraft/class_327;)V
official <init>
Lfia;<init>(IILxp;Lfgr;)V
-
-
Method Details
-
setTextColor
- Overrides:
setTextColor
in classAbstractTextWidget
- Mappings:
Namespace Name Mixin selector named setTextColor
Lnet/minecraft/client/gui/widget/MultilineTextWidget;setTextColor(I)Lnet/minecraft/client/gui/widget/MultilineTextWidget;
intermediary method_48983
Lnet/minecraft/class_7940;method_48983(I)Lnet/minecraft/class_7940;
official c
Lfia;c(I)Lfia;
-
setMaxWidth
- Mappings:
Namespace Name Mixin selector named setMaxWidth
Lnet/minecraft/client/gui/widget/MultilineTextWidget;setMaxWidth(I)Lnet/minecraft/client/gui/widget/MultilineTextWidget;
intermediary method_48984
Lnet/minecraft/class_7940;method_48984(I)Lnet/minecraft/class_7940;
official d
Lfia;d(I)Lfia;
-
setMaxRows
- Mappings:
Namespace Name Mixin selector named setMaxRows
Lnet/minecraft/client/gui/widget/MultilineTextWidget;setMaxRows(I)Lnet/minecraft/client/gui/widget/MultilineTextWidget;
intermediary method_48985
Lnet/minecraft/class_7940;method_48985(I)Lnet/minecraft/class_7940;
official e
Lfia;e(I)Lfia;
-
setCentered
- Mappings:
Namespace Name Mixin selector named setCentered
Lnet/minecraft/client/gui/widget/MultilineTextWidget;setCentered(Z)Lnet/minecraft/client/gui/widget/MultilineTextWidget;
intermediary method_48981
Lnet/minecraft/class_7940;method_48981(Z)Lnet/minecraft/class_7940;
official b
Lfia;b(Z)Lfia;
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceWidget
- Overrides:
getWidth
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named getWidth
Lnet/minecraft/client/gui/widget/Widget;getWidth()I
intermediary method_25368
Lnet/minecraft/class_8021;method_25368()I
official x
Lfkv;x()I
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceWidget
- Overrides:
getHeight
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named getHeight
Lnet/minecraft/client/gui/widget/Widget;getHeight()I
intermediary method_25364
Lnet/minecraft/class_8021;method_25364()I
official v
Lfkv;v()I
-
renderWidget
- Specified by:
renderWidget
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named renderWidget
Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
official b
Lfhe;b(Lfgt;IIF)V
-
getCacheKey
- Mappings:
Namespace Name Mixin selector named getCacheKey
Lnet/minecraft/client/gui/widget/MultilineTextWidget;getCacheKey()Lnet/minecraft/client/gui/widget/MultilineTextWidget$CacheKey;
intermediary method_48982
Lnet/minecraft/class_7940;method_48982()Lnet/minecraft/class_7940$class_8131;
official c
Lfia;c()Lfia$a;
-