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, width

    Fields inherited from interface net.minecraft.client.gui.Element

    MAX_DOUBLE_CLICK_INTERVAL
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    renderWidget(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, setTextColor

    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, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getTooltip, 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, 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
  • 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 position
      y - the y position
      width - the width
      height - the height
      message - the text
      textRenderer - the text renderer
      drawLine - whether to draw a line before the text
      padding - 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:
      renderWidget in class net.minecraft.client.gui.widget.TextWidget