public class TextFieldMultipleLine
extends net.minecraft.client.gui.widget.TextFieldWidget
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
splitString |
bordered, canLoseFocus, cursorPos, displayPos, filter, font, formatter, frame, highlightPos, isEditable, maxLength, responder, shiftPressed, suggestion, textColor, textColorUneditable, value
Constructor and Description |
---|
TextFieldMultipleLine(int x,
int y,
int width,
int height)
Initializes a text field.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteChars(int p_146175_1_) |
java.util.List<java.lang.String> |
getSplitString() |
void |
insertText(java.lang.String addText) |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClicked(double x,
double y,
int buttonClicked) |
boolean |
mouseScrolled(double p_231043_1_,
double p_231043_3_,
double p_231043_5_) |
void |
renderButton(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks) |
void |
setTextColor(int newColor) |
void |
setValue(java.lang.String value) |
void |
tick() |
canConsumeInput, changeFocus, charTyped, createNarrationMessage, deleteWords, getCursorPosition, getHighlighted, getInnerWidth, getMaxLength, getScreenX, getValue, getWordPosition, isBordered, isMouseOver, isVisible, moveCursor, moveCursorTo, moveCursorToEnd, moveCursorToStart, onFocusedChanged, renderHighlight, setBordered, setCanLoseFocus, setCursorPosition, setEditable, setFilter, setFocus, setFormatter, setHighlightPos, setMaxLength, setResponder, setSuggestion, setTextColorUneditable, setVisible, setX
clearFGColor, clicked, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isValidClickButton, mouseDragged, mouseReleased, narrate, onClick, onDrag, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
public TextFieldMultipleLine(int x, int y, int width, int height)
x
- The x coordinate of the text field.y
- The y coordinate of the text field.width
- The width of the text field.height
- The height of the text field.public void tick()
tick
in class net.minecraft.client.gui.widget.TextFieldWidget
public void setValue(java.lang.String value)
setValue
in class net.minecraft.client.gui.widget.TextFieldWidget
public void insertText(java.lang.String addText)
insertText
in class net.minecraft.client.gui.widget.TextFieldWidget
public void deleteChars(int p_146175_1_)
deleteChars
in class net.minecraft.client.gui.widget.TextFieldWidget
public boolean mouseClicked(double x, double y, int buttonClicked)
mouseClicked
in interface net.minecraft.client.gui.IGuiEventListener
mouseClicked
in class net.minecraft.client.gui.widget.TextFieldWidget
public boolean keyPressed(int keyCode, int scanCode, int modifiers)
keyPressed
in interface net.minecraft.client.gui.IGuiEventListener
keyPressed
in class net.minecraft.client.gui.widget.TextFieldWidget
public void renderButton(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY, float partialTicks)
renderButton
in class net.minecraft.client.gui.widget.TextFieldWidget
public void setTextColor(int newColor)
setTextColor
in class net.minecraft.client.gui.widget.TextFieldWidget
public boolean mouseScrolled(double p_231043_1_, double p_231043_3_, double p_231043_5_)
public java.util.List<java.lang.String> getSplitString()