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.NarrationPriority

    Nested classes/interfaces inherited from interface info.u_team.u_team_core.api.gui.TextSettingsProvider

    TextSettingsProvider.TextRenderType
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected RGBA
     
    protected RGBA
     
    protected static final RGBA
     
    protected RGBA
     
    protected static final RGBA
     
    protected static final RGBA
     
    protected RGBA
     
    protected static final RGBA
     
    protected RGBA
     
    protected static final RGBA
     
    protected static final RGBA
     
    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, hint, isEditable, maxLength, suggestion, value

    Fields inherited from class net.minecraft.client.gui.components.AbstractWidget

    ACCESSIBILITY_TEXTURE, active, alpha, height, isHovered, visible, WIDGETS_LOCATION, width, x, y

    Fields inherited from class net.minecraft.client.gui.GuiComponent

    BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATION

    Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    UEditBox(net.minecraft.client.gui.Font font, int x, int y, int width, int height, UEditBox previousEditBox, net.minecraft.network.chat.Component title)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    getCurrentBackgroundColor(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)
     
     
     
     
     
     
     
    void
    renderBackground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
     
    void
    renderForeground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
     
    void
     
    void
    renderWidget(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
     
    void
    setBackgroundColor(RGBA backgroundColor)
     
    void
    setBackgroundFrameColor(RGBA backgroundFrameColor)
     
    void
    setCursorColor(RGBA cursorColor)
     
    void
    setDisabledTextColor(RGBA disabledTextColor)
     
    void
    setHintTextColor(RGBA hintTextColor)
     
    void
     
    void
    setSuggestionTextColor(RGBA suggestionTextColor)
     
    void
    setTextColor(int color)
     
    void
    setTextColor(RGBA textColor)
     
    void
     
    void
    setUnfocusedBackgroundFrameColor(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, updateWidgetNarration

    Methods 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, wrapDefaultNarrationMessage

    Methods 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, 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

    getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolled

    Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement

    setPosition

    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, getCurrentTextRenderType
  • Field Details

    • BLACK

      protected static final RGBA BLACK
    • WHITE

      protected static final RGBA WHITE
    • LIGHT_GRAY

      protected static final RGBA LIGHT_GRAY
    • LIGHTER_GRAY

      protected static final RGBA LIGHTER_GRAY
    • GRAY

      protected static final RGBA GRAY
    • DARKER_GRAY

      protected static final RGBA DARKER_GRAY
    • DARK_GRAY

      protected static final RGBA DARK_GRAY
    • backgroundFrameColor

      protected RGBA backgroundFrameColor
    • unfocusedBackgroundFrameColor

      protected RGBA unfocusedBackgroundFrameColor
    • backgroundColor

      protected RGBA backgroundColor
    • textColor

      protected RGBA textColor
    • disabledTextColor

      protected RGBA disabledTextColor
    • hintTextColor

      protected RGBA hintTextColor
    • suggestionTextColor

      protected RGBA suggestionTextColor
    • cursorColor

      protected RGBA 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

      public RGBA getBackgroundFrameColor()
    • setBackgroundFrameColor

      public void setBackgroundFrameColor(RGBA backgroundFrameColor)
    • getUnfocusedBackgroundFrameColor

      public RGBA getUnfocusedBackgroundFrameColor()
    • setUnfocusedBackgroundFrameColor

      public void setUnfocusedBackgroundFrameColor(RGBA unfocusedBackgroundFrameColor)
    • getBackgroundColor

      public RGBA getBackgroundColor()
    • setBackgroundColor

      public void setBackgroundColor(RGBA backgroundColor)
    • getTextColor

      public RGBA getTextColor()
    • setTextColor

      public void setTextColor(RGBA textColor)
    • getDisabledTextColor

      public RGBA getDisabledTextColor()
    • setDisabledTextColor

      public void setDisabledTextColor(RGBA disabledTextColor)
    • getHintTextColor

      public RGBA getHintTextColor()
    • setHintTextColor

      public void setHintTextColor(RGBA hintTextColor)
    • getSuggestionTextColor

      public RGBA getSuggestionTextColor()
    • setSuggestionTextColor

      public void setSuggestionTextColor(RGBA suggestionTextColor)
    • getCursorColor

      public RGBA getCursorColor()
    • setCursorColor

      public void setCursorColor(RGBA cursorColor)
    • setTextColor

      public void setTextColor(int color)
      Overrides:
      setTextColor in class net.minecraft.client.gui.components.EditBox
    • setTextColorUneditable

      public void setTextColorUneditable(int color)
      Overrides:
      setTextColorUneditable in class net.minecraft.client.gui.components.EditBox
    • setPreviousText

      public void setPreviousText(UEditBox textField)
    • renderTick

      public void renderTick()
      Specified by:
      renderTick in interface RenderTickable
    • renderWidget

      public void renderWidget(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
      Overrides:
      renderWidget in class net.minecraft.client.gui.components.EditBox
    • renderBackground

      public void renderBackground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
      Specified by:
      renderBackground in interface PerspectiveRenderable
    • renderForeground

      public void renderForeground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
      Specified by:
      renderForeground in interface PerspectiveRenderable
    • getCurrentBackgroundColor

      public RGBA getCurrentBackgroundColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
      Specified by:
      getCurrentBackgroundColor in interface BackgroundColorProvider
    • 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:
      getCurrentTextColor in interface TextSettingsProvider
    • 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)