Class StringEntry
java.lang.Object
net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<AbstractConfigEntry>
johnsmith.configoverhauled.api.client.gui.entry.AbstractConfigEntry
johnsmith.configoverhauled.impl.client.gui.entry.OptionEntry<String, net.minecraft.client.gui.components.EditBox>
johnsmith.configoverhauled.impl.client.gui.entry.AbstractTextEntry<String>
johnsmith.configoverhauled.impl.client.gui.entry.StringEntry
- All Implemented Interfaces:
ConfigEntry, net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.TabOrderedElement, net.minecraft.client.gui.layouts.LayoutElement
-
Field Summary
Fields inherited from class OptionEntry
isLocked, labelComponent, minecraft, onValueChanged, parentScreen, property, resetButton, tooltip, widget -
Constructor Summary
ConstructorsConstructorDescriptionStringEntry(Property<String> property, ConfigScreen parentScreen, net.minecraft.client.Minecraft minecraft, Runnable onValueChanged) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyInput(String input) Called when the user commits their input (Presses Enter or clicks away).voidextractContent(@NotNull net.minecraft.client.gui.GuiGraphicsExtractor guiGraphicsExtractor, int mouseX, int mouseY, boolean isHovering, float partialTick) protected net.minecraft.network.chat.Componentprotected net.minecraft.network.chat.Componentprotected voidsetupEditBox(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 voidMethods inherited from class AbstractTextEntry
createWidget, restoreCurrentValueMethods inherited from class OptionEntry
canReset, children, isDefault, isModified, matchesSearch, narratables, resetToDefault, setValue, updateResetButtonMethods inherited from class net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry
focusPathAtIndex, getFocused, isDragging, mouseClicked, nextFocusPath, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, mouseDragged, mouseReleased, mouseScrolled, preeditUpdated, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, isMouseOver, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
StringEntry
public StringEntry(Property<String> property, ConfigScreen parentScreen, net.minecraft.client.Minecraft minecraft, Runnable onValueChanged)
-
-
Method Details
-
setupEditBox
protected void setupEditBox(net.minecraft.client.gui.components.EditBox box) Description copied from class:AbstractTextEntryAttaches live responders or input filters to the EditBox (e.g., coloring text red on invalid input).- Specified by:
setupEditBoxin classAbstractTextEntry<String>
-
applyInput
Description copied from class:AbstractTextEntryCalled when the user commits their input (Presses Enter or clicks away).- Specified by:
applyInputin classAbstractTextEntry<String>
-
updateWidgetValue
protected void updateWidgetValue()- Specified by:
updateWidgetValuein classOptionEntry<String, net.minecraft.client.gui.components.EditBox>
-
getDefaultValueTooltip
protected net.minecraft.network.chat.Component getDefaultValueTooltip()- Overrides:
getDefaultValueTooltipin classOptionEntry<String, net.minecraft.client.gui.components.EditBox>
-
getContentPreview
protected net.minecraft.network.chat.Component getContentPreview() -
extractContent
public void extractContent(@NotNull @NotNull net.minecraft.client.gui.GuiGraphicsExtractor guiGraphicsExtractor, int mouseX, int mouseY, boolean isHovering, float partialTick) - Overrides:
extractContentin classOptionEntry<String, net.minecraft.client.gui.components.EditBox>
-