public class EnhancedTextFieldWidget extends ColouredTextFieldWidget
Modifier and Type | Field and Description |
---|---|
protected static java.util.regex.Pattern |
COLOR_CODE_PATTERN |
protected net.minecraft.util.text.ITextComponent |
placeholder |
protected net.minecraft.client.gui.widget.button.Button.ITooltip |
tooltip |
bordered, canLoseFocus, cursorPos, displayPos, filter, font, formatter, frame, highlightPos, isEditable, maxLength, responder, shiftPressed, suggestion, textColor, textColorUneditable, value
Constructor and Description |
---|
EnhancedTextFieldWidget(net.minecraft.client.gui.FontRenderer font,
int x,
int y,
int width,
int height,
net.minecraft.util.text.ITextComponent value) |
EnhancedTextFieldWidget(net.minecraft.client.gui.FontRenderer font,
int x,
int y,
int width,
int height,
net.minecraft.client.gui.widget.TextFieldWidget root,
net.minecraft.util.text.ITextComponent value) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.text.ITextComponent |
getPlaceholder() |
net.minecraft.client.gui.widget.button.Button.ITooltip |
getTooltip() |
java.lang.String |
getValue(boolean ignoreColorCodes) |
void |
renderButton(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks) |
void |
renderToolTip(com.mojang.blaze3d.matrix.MatrixStack matrix,
int x,
int y) |
void |
setPlaceholder(net.minecraft.util.text.ITextComponent placeholder) |
void |
setTooltip(net.minecraft.client.gui.widget.button.Button.ITooltip tooltip) |
setHighlightColor
canConsumeInput, changeFocus, charTyped, createNarrationMessage, deleteChars, deleteWords, getCursorPosition, getHighlighted, getInnerWidth, getMaxLength, getScreenX, getValue, getWordPosition, insertText, isBordered, isMouseOver, isVisible, keyPressed, mouseClicked, moveCursor, moveCursorTo, moveCursorToEnd, moveCursorToStart, onFocusedChanged, renderHighlight, setBordered, setCanLoseFocus, setCursorPosition, setEditable, setFilter, setFocus, setFormatter, setHighlightPos, setMaxLength, setResponder, setSuggestion, setTextColor, setTextColorUneditable, setValue, setVisible, setX, tick
clearFGColor, clicked, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isValidClickButton, mouseDragged, mouseReleased, narrate, onClick, onDrag, onRelease, playDownSound, queueNarration, render, renderBg, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
protected static final java.util.regex.Pattern COLOR_CODE_PATTERN
protected net.minecraft.util.text.ITextComponent placeholder
protected net.minecraft.client.gui.widget.button.Button.ITooltip tooltip
public EnhancedTextFieldWidget(net.minecraft.client.gui.FontRenderer font, int x, int y, int width, int height, net.minecraft.util.text.ITextComponent value)
public EnhancedTextFieldWidget(net.minecraft.client.gui.FontRenderer font, int x, int y, int width, int height, @Nullable net.minecraft.client.gui.widget.TextFieldWidget root, net.minecraft.util.text.ITextComponent value)
public net.minecraft.util.text.ITextComponent getPlaceholder()
public void setPlaceholder(net.minecraft.util.text.ITextComponent placeholder)
public void setTooltip(net.minecraft.client.gui.widget.button.Button.ITooltip tooltip)
public net.minecraft.client.gui.widget.button.Button.ITooltip getTooltip()
public java.lang.String getValue(boolean ignoreColorCodes)
public void renderToolTip(com.mojang.blaze3d.matrix.MatrixStack matrix, int x, int y)
renderToolTip
in class net.minecraft.client.gui.widget.Widget
public void renderButton(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY, float partialTicks)
renderButton
in class ColouredTextFieldWidget