Class HintableTextFieldWidget

java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.EditBox
com.simibubi.create.foundation.config.ui.HintableTextFieldWidget
All Implemented Interfaces:
net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Widget, net.minecraft.client.gui.narration.NarratableEntry, net.minecraft.client.gui.narration.NarrationSupplier
Direct Known Subclasses:
ConfigTextField

public class HintableTextFieldWidget extends net.minecraft.client.gui.components.EditBox
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry

    net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected net.minecraft.client.gui.Font
     
    protected String
     

    Fields inherited from class net.minecraft.client.gui.components.EditBox

    BACKWARDS, DEFAULT_TEXT_COLOR, FORWARDS

    Fields inherited from class net.minecraft.client.gui.components.AbstractWidget

    active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, y

    Fields inherited from class net.minecraft.client.gui.GuiComponent

    BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION

    Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    HintableTextFieldWidget(net.minecraft.client.gui.Font font, int x, int y, int width, int height)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    keyPressed(int code, int p_keyPressed_2_, int p_keyPressed_3_)
     
    boolean
    mouseClicked(double x, double y, int button)
     
    void
    renderButton(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks)
     
    void
     

    Methods inherited from class net.minecraft.client.gui.components.EditBox

    canConsumeInput, changeFocus, charTyped, createNarrationMessage, deleteChars, deleteWords, getCursorPosition, getHighlighted, getInnerWidth, getScreenX, getValue, getWordPosition, insertText, isMouseOver, isVisible, moveCursor, moveCursorTo, moveCursorToEnd, moveCursorToStart, onFocusedChanged, setBordered, setCanLoseFocus, setCursorPosition, setEditable, setFilter, setFocus, setFormatter, setHighlightPos, setMaxLength, setResponder, setSuggestion, setTextColor, setTextColorUneditable, setValue, setVisible, setX, tick, updateNarration

    Methods inherited from class net.minecraft.client.gui.components.AbstractWidget

    clearFGColor, clicked, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getWidth, getYImage, isActive, isFocused, isHoveredOrFocused, isValidClickButton, mouseDragged, mouseReleased, narrationPriority, onClick, onDrag, onRelease, playDownSound, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth, wrapDefaultNarrationMessage

    Methods inherited from class net.minecraft.client.gui.GuiComponent

    blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine

    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.components.events.GuiEventListener

    keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled

    Methods inherited from interface net.minecraft.client.gui.components.Widget

    render
  • Field Details

    • font

      protected net.minecraft.client.gui.Font font
    • hint

      protected String hint
  • Constructor Details

    • HintableTextFieldWidget

      public HintableTextFieldWidget(net.minecraft.client.gui.Font font, int x, int y, int width, int height)
  • Method Details

    • setHint

      public void setHint(String hint)
    • renderButton

      public void renderButton(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks)
      Overrides:
      renderButton in class net.minecraft.client.gui.components.EditBox
    • mouseClicked

      public boolean mouseClicked(double x, double y, int button)
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseClicked in class net.minecraft.client.gui.components.EditBox
    • keyPressed

      public boolean keyPressed(int code, int p_keyPressed_2_, int p_keyPressed_3_)
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      keyPressed in class net.minecraft.client.gui.components.EditBox