java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
com.pixelmonmod.pixelmon.quests.client.editor.ui.ListQuestLang
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 ListQuestLang extends net.minecraft.client.gui.components.AbstractWidget
  • 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
    Modifier and Type
    Field
    Description
    int
     
    int
    Color Configuration
    int
     
    boolean
     
    boolean
     
    int
     
    boolean
     
    boolean
     
    boolean
     
    int
     
     
     
    int
     
    int
     
    int
     
    int
     
    int
     
    static final int
     
    int
     
    static final int
     
    int
     

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

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

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

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    ListQuestLang(net.minecraft.client.gui.Font fontRenderer, int x, int y, int w, int lines)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    drawBackground(net.minecraft.client.gui.GuiGraphics matrix)
     
    void
    drawText(net.minecraft.client.gui.GuiGraphics matrix)
     
    mouseClicked(double mouseX, double mouseY, int mouseButton, int offsetY)
     
    protected void
    renderWidget(net.minecraft.client.gui.GuiGraphics p_282139_, int p_268034_, int p_268009_, float p_268085_)
     
    void
     
    void
     
    void
    select(int i)
     
    void
    setEnabled(boolean enable)
     
    void
    setFocused(boolean focus)
     
    protected void
    updateWidgetNarration(net.minecraft.client.gui.narration.NarrationElementOutput p_259858_)
     

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

    clearFGColor, clicked, createNarrationMessage, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getRectangle, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playDownSound, 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

    charTyped, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled

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

    setPosition
  • Field Details

    • X_OFFSET

      public static final int X_OFFSET
      See Also:
    • Y_OFFSET

      public static final int Y_OFFSET
      See Also:
    • xPos

      public int xPos
    • yPos

      public int yPos
    • width

      public int width
    • height

      public int height
    • drawBackground

      public boolean drawBackground
    • drawBorder

      public boolean drawBorder
    • isEnabled

      public boolean isEnabled
    • isFocused

      public boolean isFocused
    • borderColor

      public int borderColor
      Color Configuration
    • backgroundColor

      public int backgroundColor
    • selectedLineColor

      public int selectedLineColor
    • textColor

      public int textColor
    • selectedTextColor

      public int selectedTextColor
    • displayLines

      public int displayLines
    • lineHeight

      public int lineHeight
    • lines

      public List<String> lines
    • startLine

      public int startLine
    • selected

      public Integer selected
    • highlightSelectedLine

      public boolean highlightSelectedLine
  • Constructor Details

    • ListQuestLang

      public ListQuestLang(net.minecraft.client.gui.Font fontRenderer, int x, int y, int w, int lines)
  • Method Details

    • drawBackground

      public void drawBackground(net.minecraft.client.gui.GuiGraphics matrix)
    • drawText

      public void drawText(net.minecraft.client.gui.GuiGraphics matrix)
    • mouseClicked

      public String mouseClicked(double mouseX, double mouseY, int mouseButton, int offsetY)
    • setEnabled

      public void setEnabled(boolean enable)
    • renderWidget

      protected void renderWidget(net.minecraft.client.gui.GuiGraphics p_282139_, int p_268034_, int p_268009_, float p_268085_)
      Specified by:
      renderWidget in class net.minecraft.client.gui.components.AbstractWidget
    • setFocused

      public void setFocused(boolean focus)
      Specified by:
      setFocused in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      setFocused in class net.minecraft.client.gui.components.AbstractWidget
    • updateWidgetNarration

      protected void updateWidgetNarration(net.minecraft.client.gui.narration.NarrationElementOutput p_259858_)
      Specified by:
      updateWidgetNarration in class net.minecraft.client.gui.components.AbstractWidget
    • addLine

      public void addLine(String line)
    • select

      public void select(int i)
    • scrollUp

      public void scrollUp()
    • scrollDown

      public void scrollDown()