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 Classes
    Modifier and Type
    Class
    Description
    static interface 
     

    Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry

    net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority
  • 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 UEditBox.OnTooltip
     
    protected static final 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, 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

    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)
     
    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 Type
    Method
    Description
     
     
    getCurrentBackgroundColor(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
     
    void
    setSuggestionTextColor(RGBA suggestionTextColor)
     
    void
    setTextColor(int color)
     
    void
    setTextColor(RGBA textColor)
     
    void
     
    void
     
    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

      protected static final UEditBox.OnTooltip EMPTY_TOOLTIP
    • 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
    • onTooltip

      protected UEditBox.OnTooltip onTooltip
    • backgroundFrameColor

      protected RGBA backgroundFrameColor
    • unfocusedBackgroundFrameColor

      protected RGBA unfocusedBackgroundFrameColor
    • backgroundColor

      protected RGBA backgroundColor
    • textColor

      protected RGBA textColor
    • disabledTextColor

      protected RGBA disabledTextColor
    • 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)
    • 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

      public void setTooltip(UEditBox.OnTooltip tooltip)
    • 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)
    • 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
    • renderButton

      public void renderButton(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks)
      Overrides:
      renderButton in class net.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 interface PerspectiveRenderable
    • renderForeground

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

      public void renderToolTip(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks)
      Specified by:
      renderToolTip in interface TooltipRenderable
    • renderToolTip

      public void renderToolTip(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY)
      Overrides:
      renderToolTip in class net.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 interface BackgroundColorProvider
    • 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 interface TextSettingsProvider
    • 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)