Class MultilineTextInputComponent
java.lang.Object
com.render.api.gui.GuiComponent<MultilineTextInputComponent>
com.render.api.gui.MultilineTextInputComponent
Multiline text input with newline insertion, selection, and vertical scrolling.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValidator(Predicate<String> validator) booleanappend(char value) booleanprotected booleanhandlesMouseClick(float mouseX, float mouseY, int button) protected booleanhandlesMouseScroll(float mouseX, float mouseY) protected booleanintlength()letterSpacing(float pixels) lineHeight(float multiplier) maxLength(int maxLength) protected booleanonCharTyped(com.render.api.gui.GuiRenderContext context, int codePoint, int modifiers) protected voidonFocusChanged(boolean focused) protected booleanonKeyPressed(com.render.api.gui.GuiRenderContext context, int keyCode, int scanCode, int modifiers) protected booleanonMouseClicked(com.render.api.gui.GuiRenderContext context, float mouseX, float mouseY, int button) protected booleanonMouseDragged(com.render.api.gui.GuiRenderContext context, float mouseX, float mouseY, int button, double dragX, double dragY) protected booleanonMouseReleased(com.render.api.gui.GuiRenderContext context, float mouseX, float mouseY, int button) protected booleanonMouseScrolled(com.render.api.gui.GuiRenderContext context, float mouseX, float mouseY, double horizontalAmount, double verticalAmount) placeholder(String placeholder) placeholder(net.minecraft.network.chat.Component placeholder) protected voidrenderSelf(com.render.api.gui.GuiRenderContext context) shadow(boolean shadow) textScalePixels(float pixels) textStyle(GuiTextStyle style) textTransformer(UnaryOperator<String> transformer) protected voidtick()value()Methods inherited from class GuiComponent
activeStateStyle, add, alignContent, alignItems, alignSelf, anchor, anchorName, anchorPlacement, animatedBorder, animation, applyStyle, aspectRatio, autoHeight, autoSize, autoWidth, backdropFilters, backfaceVisibility, backgroundColor, backgroundColor, backgroundLayer, backgroundLayers, backgroundLayers, border, borderCollapse, borderColor, borderColor, borderSpacing, borderWidth, boxDecorationBreak, boxGlow, boxShadow, boxShadows, boxShadows, boxSizing, breakAfter, breakBefore, breakInside, cancel, captionSide, caretStyle, centered, childGap, childLayout, childLayoutViewport, childOffsetX, childOffsetY, children, clearChildren, clipChildren, clipPath, clipsChildren, color, color, columnCount, columnFill, columnGap, columnRule, columnSpan, columnWidth, computedStyle, containsChildClipPoint, contextMenu, cornerRadius, defaultDisplay, dirtyCategories, disabled, display, emptyCells, enabled, enabled, filters, findById, findById, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, focused, focused, fragmentTree, glow, gradient, gridAutoFlow, gridPlacement, gridTemplate, height, height, height, hovered, id, id, indeterminate, indeterminate, inlineStyle, inset, inset, intrinsicSize, invalidateModernLayout, isClippingChildren, justifyContent, justifyItems, justifySelf, lastInvalidationReason, layoutChildren, layoutFragments, listStyleImage, listStylePosition, listStyleType, margin, margin, margin, marginBreak, markerGap, markerSide, maskLayers, maskLayers, matchesStyleState, maxHeight, maxWidth, minHeight, minWidth, motionPath, onModernLayoutComplete, opacity, order, orphans, outline, padding, padding, padding, pageName, paint, parent, pause, play, position, position, preferredHeight, preferredHeightForWidth, preferredWidth, pressed, pseudoElementBox, pseudoElementStyle, quotes, rangeState, rangeState, readOnly, readOnly, remove, removeStyleClass, renderChildren, renderClippedChildren, renderOverlay, requestFocus, required, required, resolveBaseProperties, resume, rowGap, scrollMargin, scrollMargin, scrollSnapStop, self, shadow, shouldRouteToChildren, size, size, startingStyle, stateProvider, styleAttribute, styleAttribute, styleClass, styleClasses, styledPseudoElements, styleOpen, styleState, styleState, tabIndex, tabIndex, tableLayout, tooltip, transform, transformBox, transformOrigin, transformStyle, transition, transition, transition, transition, transition, transition, transitionAll, transitionAll, transitionAll, translate, translateX, translateY, validity, validity, verticalAlign, viewTransitionName, viewTransitionName, visible, visible, widows, width, width, width, writeModernInline, writeTextShadow, writingState, x, x, y, y, zIndex
-
Constructor Details
-
MultilineTextInputComponent
public MultilineTextInputComponent()
-
-
Method Details
-
value
-
value
-
placeholder
-
placeholder
-
font
-
textStyle
-
textScalePixels
-
letterSpacing
-
lineHeight
-
shadow
-
maxLength
-
textTransformer
-
validator
-
addValidator
-
append
-
append
public boolean append(char value) -
length
public int length() -
onChange
-
onSubmit
-
onBlur
-
isFocusable
protected boolean isFocusable()- Overrides:
isFocusablein classGuiComponent<MultilineTextInputComponent>
-
handlesMouseClick
protected boolean handlesMouseClick(float mouseX, float mouseY, int button) - Overrides:
handlesMouseClickin classGuiComponent<MultilineTextInputComponent>
-
handlesMouseScroll
protected boolean handlesMouseScroll(float mouseX, float mouseY) - Overrides:
handlesMouseScrollin classGuiComponent<MultilineTextInputComponent>
-
onMouseClicked
protected boolean onMouseClicked(com.render.api.gui.GuiRenderContext context, float mouseX, float mouseY, int button) - Overrides:
onMouseClickedin classGuiComponent<MultilineTextInputComponent>
-
onMouseDragged
protected boolean onMouseDragged(com.render.api.gui.GuiRenderContext context, float mouseX, float mouseY, int button, double dragX, double dragY) - Overrides:
onMouseDraggedin classGuiComponent<MultilineTextInputComponent>
-
onMouseReleased
protected boolean onMouseReleased(com.render.api.gui.GuiRenderContext context, float mouseX, float mouseY, int button) - Overrides:
onMouseReleasedin classGuiComponent<MultilineTextInputComponent>
-
onMouseScrolled
protected boolean onMouseScrolled(com.render.api.gui.GuiRenderContext context, float mouseX, float mouseY, double horizontalAmount, double verticalAmount) - Overrides:
onMouseScrolledin classGuiComponent<MultilineTextInputComponent>
-
onKeyPressed
protected boolean onKeyPressed(com.render.api.gui.GuiRenderContext context, int keyCode, int scanCode, int modifiers) - Overrides:
onKeyPressedin classGuiComponent<MultilineTextInputComponent>
-
onCharTyped
protected boolean onCharTyped(com.render.api.gui.GuiRenderContext context, int codePoint, int modifiers) - Overrides:
onCharTypedin classGuiComponent<MultilineTextInputComponent>
-
onFocusChanged
protected void onFocusChanged(boolean focused) - Overrides:
onFocusChangedin classGuiComponent<MultilineTextInputComponent>
-
tick
protected void tick()- Overrides:
tickin classGuiComponent<MultilineTextInputComponent>
-
renderSelf
protected void renderSelf(com.render.api.gui.GuiRenderContext context) - Overrides:
renderSelfin classGuiComponent<MultilineTextInputComponent>
-