Class TransparentTextFieldWidget

java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.EditBox
All Implemented Interfaces:
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

public class TransparentTextFieldWidget extends EnhancedTextFieldWidget
Represents a text field that has a transparent background. This is a copy of the TextField class with the background removed, would be useful for text fields in the GUI that are not part of the main.
  • Nested Class Summary

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

    net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority
  • Field Summary

    Fields inherited from class com.pixelmonmod.pixelmon.client.gui.widgets.text.EnhancedTextFieldWidget

    COLOR_CODE_PATTERN, placeholder, tooltip

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

    BACKWARDS, bordered, canLoseFocus, CURSOR_APPEND_CHARACTER, CURSOR_BLINK_INTERVAL_MS, CURSOR_INSERT_COLOR, CURSOR_INSERT_WIDTH, cursorPos, DEFAULT_TEXT_COLOR, displayPos, filter, focusedTime, font, formatter, FORWARDS, highlightPos, hint, isEditable, maxLength, responder, SPRITES, suggestion, textColor, textColorUneditable, value

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

    active, alpha, focused, height, hoverOrFocusedStartTime, isHovered, message, MIN_SCROLL_PERIOD, packedFGColor, PERIOD_PER_SCROLLED_PIXEL, tabOrderGroup, tooltipMsDelay, UNSET_FG_COLOR, visible, wasHoveredOrFocused, width, x, y

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

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    TransparentTextFieldWidget(net.minecraft.client.gui.Font fontRenderer, int x, int y, int width, int height)
     
    TransparentTextFieldWidget(net.minecraft.client.gui.Font fontRenderer, int x, int y, int width, int height, String text)
     
    TransparentTextFieldWidget(net.minecraft.client.gui.Font fontRenderer, int x, int y, int width, int height, net.minecraft.network.chat.Component text)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    setBordered(boolean bordered)
    Deprecated.
    Not intended to be called from anywhere except the EnhancedTextFieldWidget.renderWidget(GuiGraphics, int, int, float) method.

    Methods inherited from class com.pixelmonmod.pixelmon.client.gui.widgets.text.EnhancedTextFieldWidget

    getPlaceholder, getValue, renderWidget, setPlaceholder, setTooltip

    Methods inherited from class com.pixelmonmod.pixelmon.client.gui.widgets.text.ColouredTextFieldWidget

    setHighlightColor

    Methods inherited from class net.minecraft.client.gui.components.EditBox

    canConsumeInput, charTyped, createNarrationMessage, deleteChars, deleteWords, getCursorPosition, getHighlighted, getInnerWidth, getMaxLength, getScreenX, getValue, getWordPosition, insertText, isMouseOver, isVisible, keyPressed, moveCursor, moveCursorTo, moveCursorToEnd, moveCursorToStart, nextFocusPath, onClick, playDownSound, renderHighlight, setCanLoseFocus, setCursorPosition, setEditable, setFilter, setFocused, setFormatter, setHighlightPos, setHint, setMaxLength, setResponder, setSuggestion, setTextColor, setTextColorUneditable, setValue, setVisible, updateWidgetNarration

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

    clearFGColor, clicked, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getRectangle, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, onDrag, onRelease, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setHeight, setMessage, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage

    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 net.minecraft.client.gui.components.Renderable

    render
  • Constructor Details

    • TransparentTextFieldWidget

      public TransparentTextFieldWidget(net.minecraft.client.gui.Font fontRenderer, int x, int y, int width, int height)
    • TransparentTextFieldWidget

      public TransparentTextFieldWidget(net.minecraft.client.gui.Font fontRenderer, int x, int y, int width, int height, net.minecraft.network.chat.Component text)
    • TransparentTextFieldWidget

      public TransparentTextFieldWidget(net.minecraft.client.gui.Font fontRenderer, int x, int y, int width, int height, String text)
  • Method Details

    • isBordered

      public boolean isBordered()
      Overrides:
      isBordered in class net.minecraft.client.gui.components.EditBox
    • setBordered

      @Deprecated public void setBordered(boolean bordered)
      Deprecated.
      Not intended to be called from anywhere except the EnhancedTextFieldWidget.renderWidget(GuiGraphics, int, int, float) method.
      Overrides:
      setBordered in class net.minecraft.client.gui.components.EditBox