Class StringDetailPopup
java.lang.Object
johnsmith.configoverhauled.api.client.gui.popup.AbstractConfigPopup<String>
johnsmith.configoverhauled.impl.client.gui.popup.TextDetailPopup<String>
johnsmith.configoverhauled.impl.client.gui.popup.StringDetailPopup
- All Implemented Interfaces:
ConfigPopup, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.TabOrderedElement
Detailed modal editor for
String properties featuring a spacious text field
and live character count display.-
Nested Class Summary
Nested classes/interfaces inherited from class TextDetailPopup
TextDetailPopup.ValidationResult<T> -
Field Summary
Fields inherited from class TextDetailPopup
clearButton, editBox, INFO_TEXT_COLOR, INVALID_TEXT_COLOR, lastAcceptedText, parsedValue, VALID_TEXT_COLOR, validationError, workingTextFields inherited from class AbstractConfigPopup
applyButton, BACKDROP_COLOR, BORDER_COLOR, cancelButton, contentHeight, contentLeft, contentTop, contentWidth, copyIdButton, description, DESCRIPTION_COLOR, DIVIDER_COLOR, font, footerHeight, FRAME_BG_COLOR, FRAME_PADDING, frameHeight, frameLeft, frameTop, frameWidth, HEADER_BG_COLOR, headerHeight, isLocked, minecraft, onApply, parentScreen, property, resetButton, screenHeight, screenWidth, title, TITLE_COLOR -
Constructor Summary
ConstructorsConstructorDescriptionStringDetailPopup(ConfigScreen parentScreen, net.minecraft.client.Minecraft minecraft, Property<String> property, @Nullable String initialText, boolean isLocked, Consumer<String> onApply) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringformatValue(String value) protected net.minecraft.network.chat.Componentprotected net.minecraft.network.chat.Componentprotected TextDetailPopup.ValidationResult<String> validateInput(String text) Methods inherited from class TextDetailPopup
buildResultValue, canResetWorkingValue, extractBody, getDefaultValueTooltip, getMaxLength, getPreferredHeight, getPreferredWidth, getRegexFilter, initContent, initExtraContent, isWorkingValueValid, onWorkingValueChanged, resetWorkingValue, revalidate, setWorkingText, trimToWidthMethods inherited from class AbstractConfigPopup
addListener, addRenderableWidget, applyAndClose, charTyped, clearWidgets, dismiss, extractBackdrop, extractForeground, extractFrame, extractHeader, extractRenderState, getApplyButtonLabel, getCancelButtonLabel, getFocusedWidget, getHeaderRightPadding, getMaxDescriptionLines, getResetButtonLabel, init, initFooter, initHeaderWidgets, isInsideFrame, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, removeWidget, setFocusedWidget, showCopyIdButton, showFooter, showResetButton, updateFooterButtonsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConfigPopup
closeOnEscape, closeOnOutsideClick, isFocused, onClose, setFocused, tickMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, getCurrentFocusPath, getRectangle, isMouseOver, mouseMoved, nextFocusPath, preeditUpdated, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
StringDetailPopup
-
-
Method Details
-
validateInput
- Specified by:
validateInputin classTextDetailPopup<String>
-
formatValue
- Specified by:
formatValuein classTextDetailPopup<String>
-
getDefaultInfoText
protected net.minecraft.network.chat.Component getDefaultInfoText()- Overrides:
getDefaultInfoTextin classTextDetailPopup<String>
-
getRightInfoText
protected net.minecraft.network.chat.Component getRightInfoText()- Overrides:
getRightInfoTextin classTextDetailPopup<String>
-