Class UEditBox
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.EditBox
info.u_team.u_team_core.gui.elements.UEditBox
- All Implemented Interfaces:
BackgroundColorProvider,PerspectiveRenderable,RenderTickable,TextSettingsProvider,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.Renderable,net.minecraft.client.gui.components.TabOrderedElement,net.minecraft.client.gui.layouts.LayoutElement,net.minecraft.client.gui.narration.NarratableEntry,net.minecraft.client.gui.narration.NarrationSupplier
- Direct Known Subclasses:
ScalableEditBox
public class UEditBox
extends net.minecraft.client.gui.components.EditBox
implements RenderTickable, PerspectiveRenderable, BackgroundColorProvider, TextSettingsProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriorityNested classes/interfaces inherited from interface info.u_team.u_team_core.api.gui.TextSettingsProvider
TextSettingsProvider.TextRenderType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RGBAprotected RGBAprotected static final RGBAprotected RGBAprotected static final RGBAprotected static final RGBAprotected RGBAprotected static final RGBAprotected RGBAprotected static final RGBAprotected static final RGBAprotected RGBAprotected RGBAprotected RGBAprotected static final RGBAFields inherited from class net.minecraft.client.gui.components.EditBox
BACKWARDS, bordered, canLoseFocus, cursorPos, DEFAULT_TEXT_COLOR, displayPos, font, formatter, FORWARDS, frame, highlightPos, hint, isEditable, maxLength, suggestion, valueFields inherited from class net.minecraft.client.gui.components.AbstractWidget
ACCESSIBILITY_TEXTURE, active, alpha, height, isHovered, visible, WIDGETS_LOCATION, width, x, yFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCurrentBackgroundColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) getCurrentBackgroundFrameColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) getCurrentCursorColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) getCurrentHintTextColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) getCurrentSuggestionTextColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) getCurrentTextColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) voidrenderBackground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) voidrenderForeground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) voidvoidrenderWidget(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) voidsetBackgroundColor(RGBA backgroundColor) voidsetBackgroundFrameColor(RGBA backgroundFrameColor) voidsetCursorColor(RGBA cursorColor) voidsetDisabledTextColor(RGBA disabledTextColor) voidsetHintTextColor(RGBA hintTextColor) voidsetPreviousText(UEditBox textField) voidsetSuggestionTextColor(RGBA suggestionTextColor) voidsetTextColor(int color) voidsetTextColor(RGBA textColor) voidsetTextColorUneditable(int color) voidsetUnfocusedBackgroundFrameColor(RGBA unfocusedBackgroundFrameColor) Methods inherited from class net.minecraft.client.gui.components.EditBox
canConsumeInput, charTyped, createNarrationMessage, deleteChars, deleteWords, getCursorPosition, getHighlighted, getInnerWidth, getScreenX, getValue, getWordPosition, insertText, isMouseOver, isVisible, keyPressed, mouseClicked, moveCursor, moveCursorTo, moveCursorToEnd, moveCursorToStart, nextFocusPath, renderHighlight, setBordered, setCanLoseFocus, setCursorPosition, setEditable, setFilter, setFocused, setFormatter, setHighlightPos, setHint, setMaxLength, setResponder, setSuggestion, setValue, setVisible, tick, updateWidgetNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractWidget
clicked, createTooltipPositioner, defaultButtonNarrationText, getHeight, getMessage, getRectangle, getTabOrderGroup, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isValidClickButton, mouseDragged, mouseReleased, narrationPriority, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderTexture, setAlpha, setMessage, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface info.u_team.u_team_core.api.gui.PerspectiveRenderable
renderMethods inherited from interface info.u_team.u_team_core.api.gui.TextSettingsProvider
getCurrentTextFont, getCurrentTextRenderType
-
Field Details
-
BLACK
-
WHITE
-
LIGHT_GRAY
-
LIGHTER_GRAY
-
GRAY
-
DARKER_GRAY
-
DARK_GRAY
-
backgroundFrameColor
-
unfocusedBackgroundFrameColor
-
backgroundColor
-
textColor
-
disabledTextColor
-
hintTextColor
-
suggestionTextColor
-
cursorColor
-
-
Constructor Details
-
UEditBox
public UEditBox(net.minecraft.client.gui.Font font, int x, int y, int width, int height, UEditBox previousEditBox, net.minecraft.network.chat.Component title)
-
-
Method Details
-
getBackgroundFrameColor
-
setBackgroundFrameColor
-
getUnfocusedBackgroundFrameColor
-
setUnfocusedBackgroundFrameColor
-
getBackgroundColor
-
setBackgroundColor
-
getTextColor
-
setTextColor
-
getDisabledTextColor
-
setDisabledTextColor
-
getHintTextColor
-
setHintTextColor
-
getSuggestionTextColor
-
setSuggestionTextColor
-
getCursorColor
-
setCursorColor
-
setTextColor
public void setTextColor(int color) - Overrides:
setTextColorin classnet.minecraft.client.gui.components.EditBox
-
setTextColorUneditable
public void setTextColorUneditable(int color) - Overrides:
setTextColorUneditablein classnet.minecraft.client.gui.components.EditBox
-
setPreviousText
-
renderTick
public void renderTick()- Specified by:
renderTickin interfaceRenderTickable
-
renderWidget
public void renderWidget(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) - Overrides:
renderWidgetin classnet.minecraft.client.gui.components.EditBox
-
renderBackground
public void renderBackground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) - Specified by:
renderBackgroundin interfacePerspectiveRenderable
-
renderForeground
public void renderForeground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) - Specified by:
renderForegroundin interfacePerspectiveRenderable
-
getCurrentBackgroundColor
public RGBA getCurrentBackgroundColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) - Specified by:
getCurrentBackgroundColorin interfaceBackgroundColorProvider
-
getCurrentBackgroundFrameColor
public RGBA getCurrentBackgroundFrameColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) -
getCurrentTextColor
public RGBA getCurrentTextColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) - Specified by:
getCurrentTextColorin interfaceTextSettingsProvider
-
getCurrentHintTextColor
public RGBA getCurrentHintTextColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) -
getCurrentSuggestionTextColor
public RGBA getCurrentSuggestionTextColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) -
getCurrentCursorColor
public RGBA getCurrentCursorColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
-