java.lang.Object
net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<AbstractConfigEntry>
All Implemented Interfaces:
ConfigEntry, net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.TabOrderedElement

public class StringEntry extends AbstractTextEntry<String>
  • Field Summary

    Fields inherited from class johnsmith.configoverhauled.impl.client.gui.entry.OptionEntry

    isLocked, labelComponent, minecraft, onValueChanged, parentScreen, property, resetButton, tooltip, widget

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

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    StringEntry(Property<String> property, ConfigScreen parentScreen, net.minecraft.client.Minecraft minecraft, Runnable onValueChanged)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Called when the user commits their input (Presses Enter or clicks away).
    protected net.minecraft.network.chat.Component
     
    protected net.minecraft.network.chat.Component
     
    void
    render(@NotNull net.minecraft.client.gui.GuiGraphics guiGraphics, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean hovering, float partialTick)
     
    protected void
    setupEditBox(net.minecraft.client.gui.components.EditBox box)
    Attaches live responders or input filters to the EditBox (e.g., coloring text red on invalid input).
    protected void
     

    Methods inherited from class johnsmith.configoverhauled.impl.client.gui.entry.AbstractTextEntry

    createWidget, restoreCurrentValue

    Methods inherited from class johnsmith.configoverhauled.impl.client.gui.entry.OptionEntry

    canReset, children, isDefault, isModified, matchesSearch, narratables, resetToDefault, setValue, updateResetButton

    Methods inherited from class net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry

    focusPathAtIndex, getFocused, isDragging, mouseClicked, nextFocusPath, setDragging, setFocused

    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.ContainerEventHandler

    charTyped, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocused

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

    getRectangle, isMouseOver, mouseMoved

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

    getTabOrderGroup
  • Constructor Details

  • Method Details

    • setupEditBox

      protected void setupEditBox(net.minecraft.client.gui.components.EditBox box)
      Description copied from class: AbstractTextEntry
      Attaches live responders or input filters to the EditBox (e.g., coloring text red on invalid input).
      Specified by:
      setupEditBox in class AbstractTextEntry<String>
    • applyInput

      protected void applyInput(String input)
      Description copied from class: AbstractTextEntry
      Called when the user commits their input (Presses Enter or clicks away).
      Specified by:
      applyInput in class AbstractTextEntry<String>
    • updateWidgetValue

      protected void updateWidgetValue()
      Specified by:
      updateWidgetValue in class OptionEntry<String,net.minecraft.client.gui.components.EditBox>
    • getDefaultValueTooltip

      protected net.minecraft.network.chat.Component getDefaultValueTooltip()
      Overrides:
      getDefaultValueTooltip in class OptionEntry<String,net.minecraft.client.gui.components.EditBox>
    • getContentPreview

      protected net.minecraft.network.chat.Component getContentPreview()
    • render

      public void render(@NotNull @NotNull net.minecraft.client.gui.GuiGraphics guiGraphics, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean hovering, float partialTick)
      Overrides:
      render in class OptionEntry<String,net.minecraft.client.gui.components.EditBox>