Class LinedTextWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.AbstractTextWidget
net.minecraft.client.gui.widget.TextWidget
net.uku3lig.ukulib.config.option.widget.LinedTextWidget
- All Implemented Interfaces:
net.minecraft.client.gui.Drawable,net.minecraft.client.gui.Element,net.minecraft.client.gui.Narratable,net.minecraft.client.gui.navigation.Navigable,net.minecraft.client.gui.Selectable,net.minecraft.client.gui.widget.Widget
public class LinedTextWidget
extends net.minecraft.client.gui.widget.TextWidget
A text widget that can have a line before the text.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
net.minecraft.client.gui.Selectable.SelectionType -
Field Summary
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionLinedTextWidget(int x, int y, int width, int height, net.minecraft.text.Text message, net.minecraft.client.font.TextRenderer textRenderer, boolean drawLine, int padding) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidrenderWidget(net.minecraft.client.gui.DrawContext drawContext, int mouseX, int mouseY, float delta) Methods inherited from class net.minecraft.client.gui.widget.TextWidget
alignCenter, alignLeft, alignRight, setTextColorMethods inherited from class net.minecraft.client.gui.widget.AbstractTextWidget
appendClickableNarrations, getTextColor, getTextRendererMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onRelease, playClickSound, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getBorder, getFocusedPath, keyPressed, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.Selectable
getNarratedPartsMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Constructor Details
-
LinedTextWidget
public LinedTextWidget(int x, int y, int width, int height, net.minecraft.text.Text message, net.minecraft.client.font.TextRenderer textRenderer, boolean drawLine, int padding) Constructor.- Parameters:
x- the x positiony- the y positionwidth- the widthheight- the heightmessage- the texttextRenderer- the text rendererdrawLine- whether to draw a line before the textpadding- the padding between the line and the text
-
-
Method Details
-
renderWidget
public void renderWidget(net.minecraft.client.gui.DrawContext drawContext, int mouseX, int mouseY, float delta) - Overrides:
renderWidgetin classnet.minecraft.client.gui.widget.TextWidget
-