@ApiStatus.Internal public class OverlaySearchField extends TextFieldWidget implements TextFieldWidget.TextFormatter
TextFieldWidget.TextFormatter| Modifier and Type | Field and Description |
|---|---|
static boolean |
isHighlighting |
boolean |
isMain |
int |
keybindFocusKey |
long |
keybindFocusTime |
protected net.minecraft.util.Tuple<java.lang.Long,me.shedaniel.math.Point> |
lastClickedDetails |
editable, editableColor, firstCharacterIndex, focusedTicks, formatter, notEditableColor, selectionEnd, selectionStart, stripInvalidBACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATIONDEFAULT| Constructor and Description |
|---|
OverlaySearchField(int x,
int y,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToHistory(java.lang.String text) |
boolean |
charTyped(char char_1,
int int_1) |
boolean |
containsMouse(double mouseX,
double mouseY) |
net.minecraft.util.IReorderingProcessor |
format(TextFieldWidget widget,
java.lang.String text,
int index) |
int |
getManhattanDistance(me.shedaniel.math.Point point1,
me.shedaniel.math.Point point2) |
boolean |
keyPressed(int int_1,
int int_2,
int int_3) |
void |
laterRender(com.mojang.blaze3d.matrix.MatrixStack matrices,
int int_1,
int int_2,
float float_1) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
void |
renderBorder(com.mojang.blaze3d.matrix.MatrixStack matrices) |
protected void |
renderSuggestion(com.mojang.blaze3d.matrix.MatrixStack matrices,
int x,
int y) |
void |
setChangedListener(java.util.function.Consumer<java.lang.String> responder) |
void |
setFocused(boolean boolean_1) |
addText, changeFocus, children, eraseCharacters, eraseWords, getBounds, getCharacterX, getCursor, getMaxLength, getSelectedText, getSuggestion, getText, getWidth, getWordSkipPosition, getWordSkipPosition, getWordSkipPosition, hasBorder, isFocused, isVisible, moveCursor, onChanged, renderSelection, setCursor, setCursorToEnd, setCursorToStart, setEditableColor, setFocusUnlocked, setFormatter, setHasBorder, setIsEditable, setMaxLength, setNotEditableColor, setSelectionEnd, setSelectionStart, setSuggestion, setText, setTextPredicate, setVisible, tickcontainsMouse, containsMouse, getZ, isMouseOver, setZgetFocused, isDragging, setDragging, setFocusedblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static boolean isHighlighting
public long keybindFocusTime
public int keybindFocusKey
public boolean isMain
protected net.minecraft.util.Tuple<java.lang.Long,me.shedaniel.math.Point> lastClickedDetails
public OverlaySearchField(int x,
int y,
int width,
int height)
public net.minecraft.util.IReorderingProcessor format(TextFieldWidget widget, java.lang.String text, int index)
format in interface TextFieldWidget.TextFormatterpublic void setChangedListener(java.util.function.Consumer<java.lang.String> responder)
setChangedListener in class TextFieldWidgetpublic void setFocused(boolean boolean_1)
setFocused in class TextFieldWidget@ApiStatus.Internal public void addToHistory(java.lang.String text)
public void laterRender(com.mojang.blaze3d.matrix.MatrixStack matrices,
int int_1,
int int_2,
float float_1)
protected void renderSuggestion(com.mojang.blaze3d.matrix.MatrixStack matrices,
int x,
int y)
renderSuggestion in class TextFieldWidgetpublic void renderBorder(com.mojang.blaze3d.matrix.MatrixStack matrices)
renderBorder in class TextFieldWidgetpublic int getManhattanDistance(me.shedaniel.math.Point point1,
me.shedaniel.math.Point point2)
public boolean mouseClicked(double mouseX,
double mouseY,
int button)
mouseClicked in interface net.minecraft.client.gui.IGuiEventListenermouseClicked in interface net.minecraft.client.gui.INestedGuiEventHandlermouseClicked in class TextFieldWidgetpublic boolean keyPressed(int int_1,
int int_2,
int int_3)
keyPressed in interface net.minecraft.client.gui.IGuiEventListenerkeyPressed in interface net.minecraft.client.gui.INestedGuiEventHandlerkeyPressed in class TextFieldWidgetpublic boolean charTyped(char char_1,
int int_1)
charTyped in interface net.minecraft.client.gui.IGuiEventListenercharTyped in interface net.minecraft.client.gui.INestedGuiEventHandlercharTyped in class TextFieldWidgetpublic boolean containsMouse(double mouseX,
double mouseY)
containsMouse in class WidgetWithBoundspublic void render(com.mojang.blaze3d.matrix.MatrixStack matrices,
int mouseX,
int mouseY,
float delta)
render in interface net.minecraft.client.gui.IRenderablerender in class TextFieldWidget