Class DefaultList<E extends net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<E>>

java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractContainerWidget
net.minecraft.client.gui.components.AbstractSelectionList<E>
net.minecraft.client.gui.components.ContainerObjectSelectionList<E>
com.stereowalker.unionlib.client.gui.screens.DefaultList<E>
All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler, 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:
ConfigList, CosmeticList, ListList, ModList, MultiConfigList, SupporterList

public abstract class DefaultList<E extends net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<E>> extends net.minecraft.client.gui.components.ContainerObjectSelectionList<E>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    DefaultList.DefaultEntry<E extends net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<E>>
     

    Nested classes/interfaces inherited from class net.minecraft.client.gui.components.ContainerObjectSelectionList

    net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<E extends net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<E>>

    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.AbstractSelectionList

    centerListVertically, headerHeight, itemHeight, minecraft, SCROLLBAR_WIDTH

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

    active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width

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

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultList(net.minecraft.client.Minecraft minecraft, int width, int height, int y, int itemHeight)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    charTyped(char codePoint, int modifiers)
     
    boolean
     
    protected int
     
    boolean
    keyPressed(int keyCode, int scanCode, int modifiers)
     
    boolean
     
    boolean
    mouseClicked(double mouseX, double mouseY, int button)
     
    boolean
     
    boolean
    mouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY)
     
    boolean
     
    boolean
    mouseReleased(double mouseX, double mouseY, int button)
     
    boolean
     
    protected int
     

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

    isSelectedItem, narrationPriority, nextFocusPath, setFocused, updateWidgetNarration

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

    addEntry, addEntryToTop, centerScrollOn, children, clampScrollAmount, clearEntries, clickedHeader, enableScissor, ensureVisible, getDefaultScrollbarPosition, getEntry, getEntryAtPosition, getFirstElement, getFocused, getHovered, getItemCount, getMaxPosition, getMaxScroll, getRowBottom, getRowLeft, getRowRight, getRowTop, getRowWidth, getScrollAmount, getSelected, isMouseOver, isValidMouseClick, mouseScrolled, narrateListElementPosition, nextEntry, nextEntry, nextEntry, remove, removeEntry, removeEntryFromTop, renderDecorations, renderHeader, renderItem, renderListBackground, renderListItems, renderListSeparators, renderSelection, renderWidget, replaceEntries, scrollbarVisible, setClampedScrollAmount, setRenderHeader, setScrollAmount, setSelected, updateScrollingState, updateSize, updateSizeAndPosition

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

    isDragging, isFocused, setDragging, setFocused

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

    clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isHovered, isHoveredOrFocused, isValidClickButton, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setHeight, setMessage, setRectangle, setSize, 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.ContainerEventHandler

    getChildAt, getCurrentFocusPath, keyReleased

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

    getRectangle, mouseMoved

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

    setPosition

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

    getTabOrderGroup
  • Constructor Details

    • DefaultList

      public DefaultList(net.minecraft.client.Minecraft minecraft, int width, int height, int y, int itemHeight)
  • Method Details

    • scrollX

      protected int scrollX()
    • getScrollbarPosition

      protected int getScrollbarPosition()
      Overrides:
      getScrollbarPosition in class net.minecraft.client.gui.components.AbstractSelectionList<E extends net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<E>>
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseClicked in class net.minecraft.client.gui.components.AbstractSelectionList<E extends net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<E>>
    • mouseClicked

      public boolean mouseClicked(MouseClickEvent mce)
    • mouseReleased

      public boolean mouseReleased(double mouseX, double mouseY, int button)
      Specified by:
      mouseReleased in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseReleased in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseReleased in class net.minecraft.client.gui.components.AbstractSelectionList<E extends net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<E>>
    • mouseReleased

      public boolean mouseReleased(MouseReleaseEvent mre)
    • mouseDragged

      public boolean mouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY)
      Specified by:
      mouseDragged in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseDragged in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseDragged in class net.minecraft.client.gui.components.AbstractSelectionList<E extends net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<E>>
    • mouseDragged

      public boolean mouseDragged(MouseDragEvent mde)
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
    • keyPressed

      public boolean keyPressed(KeyPressEvent kpe)
    • charTyped

      public boolean charTyped(char codePoint, int modifiers)
    • charTyped

      public boolean charTyped(CharTypeEvent cte)