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
,TooltipRenderable
,net.minecraft.client.gui.components.events.GuiEventListener
,net.minecraft.client.gui.components.Widget
,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 ClassesNested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RGBA
protected RGBA
protected static final RGBA
protected RGBA
protected static final RGBA
protected static final RGBA
protected RGBA
protected static final UEditBox.OnTooltip
protected static final RGBA
protected static final RGBA
protected static final RGBA
protected UEditBox.OnTooltip
protected RGBA
protected RGBA
protected RGBA
protected static final RGBA
Fields inherited from class net.minecraft.client.gui.components.EditBox
BACKWARDS, bordered, canLoseFocus, cursorPos, DEFAULT_TEXT_COLOR, displayPos, font, formatter, FORWARDS, frame, highlightPos, isEditable, maxLength, suggestion, value
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, y
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorsConstructorDescriptionUEditBox
(net.minecraft.client.gui.Font font, int x, int y, int width, int height, UEditBox previousEditBox, net.minecraft.network.chat.Component title) UEditBox
(net.minecraft.client.gui.Font font, int x, int y, int width, int height, UEditBox previousEditBox, net.minecraft.network.chat.Component title, UEditBox.OnTooltip tooltip) -
Method Summary
Modifier and TypeMethodDescriptiongetCurrentBackgroundColor
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) getCurrentBackgroundFrameColor
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) getCurrentCursorColor
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) getCurrentSuggestionTextColor
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) getCurrentTextColor
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) void
renderBackground
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) void
renderButton
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) void
renderForeground
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) void
void
renderToolTip
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY) void
renderToolTip
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) void
setBackgroundColor
(RGBA backgroundColor) void
setBackgroundFrameColor
(RGBA backgroundFrameColor) void
setCursorColor
(RGBA cursorColor) void
setDisabledTextColor
(RGBA disabledTextColor) void
setPreviousText
(UEditBox textField) void
setSuggestionTextColor
(RGBA suggestionTextColor) void
setTextColor
(int color) void
setTextColor
(RGBA textColor) void
setTextColorUneditable
(int color) void
setTooltip
(UEditBox.OnTooltip tooltip) void
setUnfocusedBackgroundFrameColor
(RGBA unfocusedBackgroundFrameColor) Methods inherited from class net.minecraft.client.gui.components.EditBox
canConsumeInput, changeFocus, charTyped, createNarrationMessage, deleteChars, deleteWords, getCursorPosition, getHighlighted, getInnerWidth, getScreenX, getValue, getWordPosition, insertText, isMouseOver, isVisible, keyPressed, mouseClicked, moveCursor, moveCursorTo, moveCursorToEnd, moveCursorToStart, onFocusedChanged, renderHighlight, setBordered, setCanLoseFocus, setCursorPosition, setEditable, setFilter, setFocus, setFormatter, setHighlightPos, setMaxLength, setResponder, setSuggestion, setValue, setVisible, setX, tick, updateNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getWidth, getYImage, isActive, isFocused, isHoveredOrFocused, isValidClickButton, mouseDragged, mouseReleased, narrationPriority, onClick, onDrag, onRelease, playDownSound, render, renderBg, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth, wrapDefaultNarrationMessage
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
Methods inherited from interface info.u_team.u_team_core.api.gui.PerspectiveRenderable
render
Methods inherited from interface info.u_team.u_team_core.api.gui.TextSettingsProvider
getCurrentTextFont
-
Field Details
-
EMPTY_TOOLTIP
-
BLACK
-
WHITE
-
LIGHT_GRAY
-
LIGHTER_GRAY
-
GRAY
-
DARKER_GRAY
-
DARK_GRAY
-
onTooltip
-
backgroundFrameColor
-
unfocusedBackgroundFrameColor
-
backgroundColor
-
textColor
-
disabledTextColor
-
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) -
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, UEditBox.OnTooltip tooltip)
-
-
Method Details
-
setTooltip
-
getBackgroundFrameColor
-
setBackgroundFrameColor
-
getUnfocusedBackgroundFrameColor
-
setUnfocusedBackgroundFrameColor
-
getBackgroundColor
-
setBackgroundColor
-
getTextColor
-
setTextColor
-
getDisabledTextColor
-
setDisabledTextColor
-
getSuggestionTextColor
-
setSuggestionTextColor
-
getCursorColor
-
setCursorColor
-
setTextColor
public void setTextColor(int color) - Overrides:
setTextColor
in classnet.minecraft.client.gui.components.EditBox
-
setTextColorUneditable
public void setTextColorUneditable(int color) - Overrides:
setTextColorUneditable
in classnet.minecraft.client.gui.components.EditBox
-
setPreviousText
-
renderTick
public void renderTick()- Specified by:
renderTick
in interfaceRenderTickable
-
renderButton
public void renderButton(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) - Overrides:
renderButton
in classnet.minecraft.client.gui.components.EditBox
-
renderBackground
public void renderBackground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) - Specified by:
renderBackground
in interfacePerspectiveRenderable
-
renderForeground
public void renderForeground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) - Specified by:
renderForeground
in interfacePerspectiveRenderable
-
renderToolTip
public void renderToolTip(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) - Specified by:
renderToolTip
in interfaceTooltipRenderable
-
renderToolTip
public void renderToolTip(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY) - Overrides:
renderToolTip
in classnet.minecraft.client.gui.components.AbstractWidget
-
getCurrentBackgroundColor
public RGBA getCurrentBackgroundColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) - Specified by:
getCurrentBackgroundColor
in interfaceBackgroundColorProvider
-
getCurrentBackgroundFrameColor
public RGBA getCurrentBackgroundFrameColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) -
getCurrentTextColor
public RGBA getCurrentTextColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) - Specified by:
getCurrentTextColor
in interfaceTextSettingsProvider
-
getCurrentSuggestionTextColor
public RGBA getCurrentSuggestionTextColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) -
getCurrentCursorColor
public RGBA getCurrentCursorColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks)
-