Class UEditBox

java.lang.Object
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
  • 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(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Overrides:
      renderWidget in class net.minecraft.client.gui.components.EditBox
    • renderBackground

      public void renderBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      renderBackground in interface PerspectiveRenderable
    • renderForeground

      public void renderForeground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      renderForeground in interface PerspectiveRenderable
    • getCurrentBackgroundColor

      public RGBA getCurrentBackgroundColor(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      getCurrentBackgroundColor in interface BackgroundColorProvider
    • getCurrentBackgroundFrameColor

      public RGBA getCurrentBackgroundFrameColor(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
    • getCurrentTextColor

      public RGBA getCurrentTextColor(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      getCurrentTextColor in interface TextSettingsProvider
    • getCurrentHintTextColor

      public RGBA getCurrentHintTextColor(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
    • getCurrentSuggestionTextColor

      public RGBA getCurrentSuggestionTextColor(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
    • getCurrentCursorColor

      public RGBA getCurrentCursorColor(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)