java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
com.pixelmonmod.pixelmon.client.gui.widgets.SlotBase
com.pixelmonmod.pixelmon.client.gui.chooseMoveset.MoveListScreen
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 MoveListScreen extends SlotBase implements net.minecraft.client.gui.components.events.GuiEventListener
A list of moves in a GUI.
  • 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 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
    MoveListScreen(ClickableElement owner, List<Attack> list, int width, int height, int top, int left, net.minecraft.client.Minecraft mc)
    Initializes a move list.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    drawSlot(net.minecraft.client.gui.GuiGraphics graphics, int index, int x, int yTop, int yMiddle)
     
    protected void
    elementClicked(int index, boolean doubleClicked)
     
    protected float[]
     
    protected Color
     
    protected int
     
    protected boolean
    isSelected(int element)
     
    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, isValidClickButton, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, 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, getRectangle, isFocused, isMouseOver, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath, setFocused

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

    setPosition

    Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Constructor Details

    • MoveListScreen

      public MoveListScreen(ClickableElement owner, List<Attack> list, int width, int height, int top, int left, net.minecraft.client.Minecraft mc)
      Initializes a move list.
      Parameters:
      owner - The GUI containing the move list.
      list - The attacks to put in the list.
      width - The width of the list.
      height - The height of the list.
      top - The y coordinate of the top of the list.
      left - The x coordinate of the left side of the list.
      mc - The Minecraft instance.
  • Method Details

    • getSize

      protected int getSize()
      Specified by:
      getSize in class SlotBase
    • elementClicked

      protected void elementClicked(int index, boolean doubleClicked)
      Specified by:
      elementClicked in class SlotBase
    • isSelected

      protected boolean isSelected(int element)
      Specified by:
      isSelected in class SlotBase
    • drawSlot

      protected void drawSlot(net.minecraft.client.gui.GuiGraphics graphics, int index, int x, int yTop, int yMiddle)
      Specified by:
      drawSlot in class SlotBase
    • get1Color

      protected float[] get1Color()
      Specified by:
      get1Color in class SlotBase
    • getSelectionColor

      protected Color getSelectionColor()
      Overrides:
      getSelectionColor in class SlotBase
    • updateWidgetNarration

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